From c4975d7a2892e3baecff2a800d55f422af30151f Mon Sep 17 00:00:00 2001 From: Pawel Lampe Date: Sun, 25 Aug 2024 22:50:26 +0200 Subject: [PATCH] Align shaders using POSITION to Godot 4.3 --- source/shaders/3d/detailed_fog_of_war.gdshader | 2 +- source/shaders/3d/fog.gdshader | 2 +- source/shaders/3d/simple_fog_of_war.gdshader | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/shaders/3d/detailed_fog_of_war.gdshader b/source/shaders/3d/detailed_fog_of_war.gdshader index 02cfc86..6d26e0d 100644 --- a/source/shaders/3d/detailed_fog_of_war.gdshader +++ b/source/shaders/3d/detailed_fog_of_war.gdshader @@ -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() diff --git a/source/shaders/3d/fog.gdshader b/source/shaders/3d/fog.gdshader index 06b578d..25585cc 100644 --- a/source/shaders/3d/fog.gdshader +++ b/source/shaders/3d/fog.gdshader @@ -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() diff --git a/source/shaders/3d/simple_fog_of_war.gdshader b/source/shaders/3d/simple_fog_of_war.gdshader index 714e887..2b1ab63 100644 --- a/source/shaders/3d/simple_fog_of_war.gdshader +++ b/source/shaders/3d/simple_fog_of_war.gdshader @@ -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()