feat: lights debug mode

This commit is contained in:
MihailRis
2025-04-29 15:59:52 +03:00
parent 87dc9ed167
commit 4e5199d89a
6 changed files with 25 additions and 10 deletions
+3
View File
@@ -7,10 +7,13 @@ out vec4 f_color;
uniform sampler2D u_texture0;
uniform samplerCube u_cubemap;
uniform bool u_alphaClip;
uniform bool u_debugLights;
void main() {
vec3 fogColor = texture(u_cubemap, a_dir).rgb;
vec4 tex_color = texture(u_texture0, a_texCoord);
if (u_debugLights)
tex_color.rgb = vec3(1.0);
float alpha = a_color.a * tex_color.a;
if (u_alphaClip) {
if (alpha < 0.2f)