Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpu_shader_simple_lighting_frag.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f5ce4bdf50910897c73d61c267f502063a73751 (plain)
1
2
3
4
5
6

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