[nostalgia/core/opengl] Cleanup sprite enable/disable code
This commit is contained in:
parent
59016ee894
commit
0093778f64
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user