diff --git a/WickedEngine/shaders/chamfernormals_edgedetectCS.hlsl b/WickedEngine/shaders/chamfernormals_edgedetectCS.hlsl index 9f5a9c800..c371d1470 100644 --- a/WickedEngine/shaders/chamfernormals_edgedetectCS.hlsl +++ b/WickedEngine/shaders/chamfernormals_edgedetectCS.hlsl @@ -35,7 +35,7 @@ void main(uint3 DTid : SV_DispatchThreadID) { float3 edgeNormal = normalize(normal.xyz + n.xyz); - texture_closestEdge[DTid.xy] = uint2(pack_unitvector(edgeNormal), pack_pixel(pixel2)); + texture_closestEdge[DTid.xy] = uint2(pack_unitvector(edgeNormal), pack_pixel(DTid.xy)); return; } }