Shader cleanup - applies DRY to various shaders in the game (#23294)

shader cleanup - applies DRY to various shaders in the game
This commit is contained in:
deathride58
2024-01-03 03:35:25 -05:00
committed by GitHub
parent 0e18d54cf7
commit ef1cba70b3
6 changed files with 15 additions and 82 deletions

View File

@@ -1,6 +1,5 @@
void fragment() {
highp vec4 color = zTexture(UV);
highp float grey = dot(color.rgb, vec3(0.299, 0.587, 0.114));
COLOR = vec4(vec3(grey), color.a);
COLOR = vec4(vec3(zGrayscale(color.rgb)), color.a);
}