Fixed coordinate transformation for skybox and reflection objects

Matched HLSL and GLSL shaders
Fixes #757
This commit is contained in:
Sascha Willems 2020-08-28 21:15:13 +02:00
parent 1d815e6ced
commit 4e600f5943
11 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ VSOutput main([[vk::location(0)]] float3 Pos : POSITION0)
{
VSOutput output = (VSOutput)0;
output.UVW = Pos;
output.UVW.y *= -1.0;
output.UVW.yz *= -1.0;
output.Pos = mul(ubo.projection, mul(ubo.model, float4(Pos.xyz, 1.0)));
return output;
}