Files
test2/source/blender/gpu/shaders/gpu_shader_simple_lighting_frag.glsl
Clément Foucault f898190362 GPU: Fix static compilation errors
- Missing explicit cast to `int` for bitwise operator.
- UBO struct member macro colision. Rename fixes it.
2022-12-09 00:10:14 +01:00

7 lines
149 B
GLSL

void main()
{
fragColor = simple_lighting_data.l_color;
fragColor.xyz *= clamp(dot(normalize(normal), simple_lighting_data.light), 0.0, 1.0);
}