From fdacb1fad71efe3f40238465ed546e7e2910aea9 Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Sun, 30 Jul 2023 11:00:55 -0400 Subject: [PATCH] Changing TEXTURE_SIZE name in sprite fragment shader to be used by custom shaders. (#203) --- seika/src/rendering/shader/shader_source.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seika/src/rendering/shader/shader_source.h b/seika/src/rendering/shader/shader_source.h index d0fac6f6b..1ccde4a58 100644 --- a/seika/src/rendering/shader/shader_source.h +++ b/seika/src/rendering/shader/shader_source.h @@ -57,8 +57,8 @@ static const char* SE_OPENGL_SHADER_SOURCE_FRAGMENT_SPRITE = "//@@FUNCTIONS\n" "\n" "void main() {\n" - " vec2 CRE_SPRITE_TEXTURE_SIZE = textureSize(TEXTURE, 0);\n" - " vec2 CRE_SPRITE_UV = mix(UV, CRE_APPLY_NEAREST_NEIGHBOR(UV, CRE_SPRITE_TEXTURE_SIZE), USING_NEAREST_NEIGHBOR);\n" + " vec2 TEXTURE_SIZE = textureSize(TEXTURE, 0);\n" + " vec2 CRE_SPRITE_UV = mix(UV, CRE_APPLY_NEAREST_NEIGHBOR(UV, TEXTURE_SIZE), USING_NEAREST_NEIGHBOR);\n" " COLOR = TEXTURE_MODULATE * texture(TEXTURE, CRE_SPRITE_UV);\n" " //@@fragment()\n" "}\n";