Fixed coordinate transformation for skybox and reflection objects
Matched HLSL and GLSL shaders Fixes #757
This commit is contained in:
parent
1d815e6ced
commit
4e600f5943
11 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue