diff options
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_fx_dof_hq_geo.glsl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_geo.glsl b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_geo.glsl index 25ba91f772d..5ca815952fc 100644 --- a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_geo.glsl +++ b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_geo.glsl @@ -16,10 +16,16 @@ uniform sampler2D cocbuffer; #endif /* initial uv coordinate */ -in vec2 uvcoord[1]; -out vec2 particlecoord; -out vec4 color; - +#if __VERSION__ < 130 + varying in vec2 uvcoord[1]; + varying out vec2 particlecoord; + varying out vec4 color; + #define textureLod texture2DLod +#else + in vec2 uvcoord[1]; + out vec2 particlecoord; + out vec4 color; +#endif #define M_PI 3.1415926535897932384626433832795 |