From 85337fb5aa1ce63023ddd5e284ae6b2ccdbb5e30 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Mon, 30 Oct 2023 15:06:56 -0300 Subject: refa Move texture sampler to texture object --- glsl/shader_3d.frag.glsl | 2 +- glsl/shader_sprite_3d.frag.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'glsl') 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() -- cgit v1.2.3