Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
#ifndef USE_INSTANCE_COLOR
uniform vec4 color;
#endif
uniform vec3 light;
in vec3 normal;
#ifdef USE_INSTANCE_COLOR
flat in vec4 finalColor;
# define color finalColor
out vec4 fragColor;
void main()
{
fragColor = color;
fragColor.xyz *= clamp(dot(normalize(normal), light), 0.0, 1.0);
}