diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_vertex_world.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_vertex_world.glsl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_vertex_world.glsl b/source/blender/gpu/shaders/gpu_shader_vertex_world.glsl index d45a4b316a8..7a39c3fc674 100644 --- a/source/blender/gpu/shaders/gpu_shader_vertex_world.glsl +++ b/source/blender/gpu/shaders/gpu_shader_vertex_world.glsl @@ -1,7 +1,11 @@ -varying vec3 varposition; -varying vec3 varnormal; - +#if __VERSION__ == 120 + varying vec3 varposition; + varying vec3 varnormal; +#else + out vec3 varposition; + out vec3 varnormal; +#endif /* Color, keep in sync with: gpu_shader_vertex.glsl */ |