diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl b/source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl index 6477390dca9..d9e037e7047 100644 --- a/source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_fx_ssao_frag.glsl @@ -11,16 +11,11 @@ uniform sampler1D ssao_concentric_tex; // depth buffer uniform sampler2D depthbuffer; -#if __VERSION__ == 120 - // coordinates on framebuffer in normalized (0.0-1.0) uv space - varying vec4 uvcoordsvar; - #define FragColor gl_FragColor -#else - in vec4 uvcoordsvar; - out vec4 FragColor; - #define texture1D texture - #define texture2D texture -#endif +// coordinates on framebuffer in normalized (0.0-1.0) uv space +in vec4 uvcoordsvar; +out vec4 FragColor; +#define texture1D texture +#define texture2D texture /* ssao_params.x : pixel scale for the ssao radious */ /* ssao_params.y : factor for the ssao darkening */ |