Skip to content

Commit

Permalink
Changing TEXTURE_SIZE name in sprite fragment shader to be used by cu…
Browse files Browse the repository at this point in the history
…stom shaders. (#203)
  • Loading branch information
Chukobyte authored Jul 30, 2023
1 parent e7afacf commit fdacb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seika/src/rendering/shader/shader_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit fdacb1f

Please sign in to comment.