This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/shaders/gpu_shader_vertex_world.glsl
Antonis Ryakiotakis 090623c6b6 Revert "Add missing trailing '}' in GLSL files"
This reverts commit ebd4a6e0dd.

Trailing '}' is added in C, also we add some extra code as needed.
2015-02-12 19:39:10 +01:00

14 lines
231 B
GLSL

varying vec3 varposition;
varying vec3 varnormal;
void main()
{
/* position does not need to be transformed, we already have it */
gl_Position = gl_Vertex;
varposition = gl_Vertex.xyz;
varnormal = normalize(-varposition);