com.github.asus4.texture-source 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Texture2D<float4> _InputTex;
4
4
  RWTexture2D<float4> _OutputTex;
5
- int2 _OutputTexSize;
5
+ uint2 _OutputTexSize;
6
6
  float4x4 _TransformMatrix;
7
7
 
8
8
  SamplerState linearClampSampler;
@@ -15,7 +15,7 @@ void TextureTransform (uint2 id : SV_DispatchThreadID)
15
15
  return;
16
16
  }
17
17
 
18
- float2 uv = float2(id.x, id.y) / float2(_OutputTexSize.x, _OutputTexSize.y);
18
+ float2 uv = (float2)id / float2(_OutputTexSize - 1.0);
19
19
  uv = mul(_TransformMatrix, float4(uv, 0, 1)).xy;
20
20
 
21
21
  _OutputTex[id] = any(uv < 0) || any(uv > 1)
package/package.json CHANGED
@@ -9,6 +9,6 @@
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "unity": "2020.3",
11
11
  "unityRelease": "0f1",
12
- "version": "0.1.1",
12
+ "version": "0.1.2",
13
13
  "type": "tool"
14
14
  }