- Missing explicit cast to `int` for bitwise operator. - UBO struct member macro colision. Rename fixes it.
7 lines
149 B
GLSL
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);
|
|
}
|