Skip to content

Commit

Permalink
Update shaders
Browse files Browse the repository at this point in the history
Fixes #1177
  • Loading branch information
SaschaWillems committed Jan 17, 2025
1 parent 02dfaf2 commit 27c8c36
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shaders/glsl/texturecubemaparray/skybox.vert
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ layout (location = 0) out vec3 outUVW;
void main()
{
outUVW = inPos;
outUVW.yz *= -1.0f;
outUVW.xy *= -1.0f;
// Remove translation from view matrix
mat4 viewMat = mat4(mat3(ubo.model));
gl_Position = ubo.projection * viewMat * vec4(inPos.xyz, 1.0);
Expand Down
Binary file modified shaders/glsl/texturecubemaparray/skybox.vert.spv
Binary file not shown.
2 changes: 1 addition & 1 deletion shaders/hlsl/texturecubemaparray/skybox.vert
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ VSOutput main([[vk::location(0)]] float3 Pos : POSITION0)
{
VSOutput output = (VSOutput)0;
output.UVW = Pos;
output.UVW.yz *= -1.0;
output.UVW.xy *= -1.0;
// Remove translation from view matrix
float4x4 viewMat = ubo.model;
viewMat[0][3] = 0.0;
Expand Down
Binary file modified shaders/hlsl/texturecubemaparray/skybox.vert.spv
Binary file not shown.

0 comments on commit 27c8c36

Please sign in to comment.