This leaves some of the unresolved case where we still need both implementation.
7 lines
147 B
GLSL
7 lines
147 B
GLSL
|
|
void main()
|
|
{
|
|
fragColor = simple_lighting_data.color;
|
|
fragColor.xyz *= clamp(dot(normalize(normal), simple_lighting_data.light), 0.0, 1.0);
|
|
}
|