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.
in vec2 pos;
out vec3 viewPosition;
#ifndef VOLUMETRICS
/* necessary for compilation*/
out vec3 worldPosition;
out vec3 worldNormal;
out vec3 viewNormal;
#endif
void main()
{
gl_Position = vec4(pos, 1.0, 1.0);
viewPosition = vec3(pos, -1.0);
/* Not used in practice but needed to avoid compilation errors. */
worldPosition = viewPosition;
worldNormal = viewNormal = normalize(-viewPosition);
#ifdef USE_ATTR
pass_attr(viewPosition);
}