Skip to content

Commit cdcc52c

Browse files
Fixed Texcoord debug rendering.
1 parent cadef34 commit cdcc52c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Assets/ScriptableRenderLoop/HDRenderLoop/Material/Attributes.hlsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ void GetVaryingsDataDebug(uint paramId, FragInput input, inout float3 result, in
3030
switch (paramId)
3131
{
3232
case DEBUGVIEWVARYING_TEXCOORD0:
33-
result = float3(input.texCoord0 * 0.5 + 0.5, 0.0);
33+
result = float3(input.texCoord0, 0.0);
3434
break;
3535
case DEBUGVIEWVARYING_TEXCOORD1:
36-
result = float3(input.texCoord1 * 0.5 + 0.5, 0.0);
36+
result = float3(input.texCoord1, 0.0);
3737
break;
3838
case DEBUGVIEWVARYING_TEXCOORD2:
39-
result = float3(input.texCoord2 * 0.5 + 0.5, 0.0);
39+
result = float3(input.texCoord2, 0.0);
4040
break;
4141
case DEBUGVIEWVARYING_TEXCOORD3:
42-
result = float3(input.texCoord3 * 0.5 + 0.5, 0.0);
42+
result = float3(input.texCoord3, 0.0);
4343
break;
4444
case DEBUGVIEWVARYING_VERTEX_TANGENT_WS:
4545
result = input.tangentToWorld[0].xyz * 0.5 + 0.5;

0 commit comments

Comments
 (0)