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

gpu_shader_simple_lighting_smooth_color_alpha_frag.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6b13f408c847539071bee74a1c026cfea441fcd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

uniform vec3 light;
uniform float alpha;
uniform float global;

in vec3 normal;
in vec4 finalColor;
out vec4 fragColor;

void main()
{
	fragColor = finalColor * (global + (1.0 - global) * max(0.0, dot(normalize(normal), light)));
	fragColor.a = alpha;
}