Disabling lighting for now

This commit is contained in:
Dynamitos
2025-04-13 14:41:42 +02:00
parent 54c5f9a5d7
commit 19007ac601
15 changed files with 86 additions and 84 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ float4 screenToView(float4 screen)
float2 texCoord = screen.xy / pViewParams.screenDimensions;
// Convert to clip space
float4 clip = float4( float2( texCoord.x, 1.0f-texCoord.y ) * 2.0f - 1.0f, screen.z, screen.w);
float4 clip = float4( texCoord * 2.0f - 1.0f, screen.z, screen.w);
return clipToView(clip);
}
@@ -94,7 +94,7 @@ float4 clipToScreen(float4 clip)
float oz = 1;
float pz = 0 - 1;
float zf = pz * ndc.z + oz;
return float4(float2(texCoords.x, 1 - texCoords.y) * pViewParams.screenDimensions, zf, 1.0f);
return float4(texCoords * pViewParams.screenDimensions, zf, 1.0f);
}
struct Plane