[nostalgia/core/opengl] Cleanup sprite enable/disable code

This commit is contained in:
Gary Talent 2023-12-19 22:55:41 -06:00
parent 59016ee894
commit 0093778f64

View File

@ -73,8 +73,8 @@ constexpr ox::CStringView spritevshadTmpl = R"glsl(
float xScaleInvert = 1.0 - vXScale; float xScaleInvert = 1.0 - vXScale;
gl_Position = vec4( gl_Position = vec4(
vPosition.x * vXScale - xScaleInvert, vPosition.y, vPosition.x * vXScale - xScaleInvert, vPosition.y,
vPosition.z, 1.0); vPosition.z, 1.0) * vEnabled;
fTexCoord = vTexCoord * vec2(1, vTileHeight) * vec2(vEnabled, vEnabled); fTexCoord = vTexCoord * vec2(1, vTileHeight);
})glsl"; })glsl";
constexpr ox::CStringView spritefshadTmpl = R"glsl( constexpr ox::CStringView spritefshadTmpl = R"glsl(