Skip to content

Commit 898d173

Browse files
committed
fix invert shading
1 parent a9f705c commit 898d173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Base.rte/Shaders/Background.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ void main() {
3333
if (!rteBlendInvert) {
3434
FragColor = texture2DAA(rtePalette, vec2(red * vertexColor.r, 0.0)) * vec4(rteColor.rgb, rteColor.a * vertexColor.a);
3535
} else {
36-
FragColor = vec4(vec3(1.0), 0.0) - (texture2DAA(rtePalette, vec2(red * vertexColor.r, 0.0)) * vec4(rteColor.rgb, rteColor.a * vertexColor.a));
36+
FragColor = vec4(vec3(1.0), 0.0) - (texture2DAA(rtePalette, vec2(red * vertexColor.r, 0.0)) * vec4(rteColor.rgb, -rteColor.a * vertexColor.a));
3737
}
3838
}

0 commit comments

Comments
 (0)