Skip to content

Commit

Permalink
Align shaders using POSITION to Godot 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Aug 25, 2024
1 parent 50c1cea commit c4975d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/shaders/3d/detailed_fog_of_war.gdshader
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ uniform sampler2D depth_texture : hint_depth_texture;

void vertex()
{
POSITION = vec4(VERTEX, 1);
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
}

void fragment()
Expand Down
2 changes: 1 addition & 1 deletion source/shaders/3d/fog.gdshader
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ uniform sampler2D depth_texture : hint_depth_texture;

void vertex()
{
POSITION = vec4(VERTEX, 1);
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
}

void fragment()
Expand Down
2 changes: 1 addition & 1 deletion source/shaders/3d/simple_fog_of_war.gdshader
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ uniform sampler2D depth_texture : hint_depth_texture;

void vertex()
{
POSITION = vec4(VERTEX, 1);
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
}

void fragment()
Expand Down

0 comments on commit c4975d7

Please sign in to comment.