summaryrefslogtreecommitdiff
path: root/glsl
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2023-10-30 15:06:56 -0300
committerFrederico Linhares <fred@linhares.blue>2023-10-30 15:06:56 -0300
commit85337fb5aa1ce63023ddd5e284ae6b2ccdbb5e30 (patch)
tree16e2538b1039067c9732645f301ae717a8855a49 /glsl
parentc4efa865f359c5c9e365d5faa8ae3c88f3657cb7 (diff)
refa Move texture sampler to texture object
Diffstat (limited to 'glsl')
-rw-r--r--glsl/shader_3d.frag.glsl2
-rw-r--r--glsl/shader_sprite_3d.frag.glsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/glsl/shader_3d.frag.glsl b/glsl/shader_3d.frag.glsl
index 2405305..3841c77 100644
--- a/glsl/shader_3d.frag.glsl
+++ b/glsl/shader_3d.frag.glsl
@@ -34,7 +34,7 @@ layout(set = 0, binding = 1) uniform UBOWorld
vec4 directional_light_color;
} ubo_world;
-layout(set = 2, binding = 1) uniform sampler2D texture_sampler;
+layout(set = 3, binding = 0) uniform sampler2D texture_sampler;
void
main()
diff --git a/glsl/shader_sprite_3d.frag.glsl b/glsl/shader_sprite_3d.frag.glsl
index fe823f8..a342d36 100644
--- a/glsl/shader_sprite_3d.frag.glsl
+++ b/glsl/shader_sprite_3d.frag.glsl
@@ -33,7 +33,7 @@ layout(set = 0, binding = 1) uniform UBOWorld
vec4 directional_light_color;
} ubo_world;
-layout(set = 2, binding = 1) uniform sampler2D texture_sampler;
+layout(set = 3, binding = 0) uniform sampler2D texture_sampler;
void
main()