Skip to content

Commit cf230bb

Browse files
Antoine LelièvreEvergreen
authored andcommitted
Fix warning in fog volume shader
1 parent be68a66 commit cf230bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.render-pipelines.high-definition/Editor/Material/FogVolume/ShaderGraph/VoxelizationTransforms.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ float4x4 BuildWorldToObjectMatrixFromLocalFogOBB()
3232
float3 TransformWorldToObjectFog(float3 positionRWS)
3333
{
3434
float3 posWS = GetAbsolutePositionWS(positionRWS);
35-
return mul(BuildWorldToObjectMatrixFromLocalFogOBB(), float4(posWS, 1));
35+
return mul(BuildWorldToObjectMatrixFromLocalFogOBB(), float4(posWS, 1)).xyz;
3636
}

0 commit comments

Comments
 (0)