diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl | 42 |
1 files changed, 13 insertions, 29 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl index 78fe0e563f2..1dd5bf42b25 100644 --- a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl +++ b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl @@ -1,33 +1,17 @@ -#if __VERSION__ == 120 - attribute vec2 pos; - attribute vec2 uvs; - /* initial uv coordinate */ - varying vec2 uvcoord; - - /* coordinate used for calculating radius et al set in geometry shader */ - varying vec2 particlecoord; - - /* downsampling coordinates */ - varying vec2 downsample1; - varying vec2 downsample2; - varying vec2 downsample3; - varying vec2 downsample4; -#else - in vec2 pos; - in vec2 uvs; - /* initial uv coordinate */ - out vec2 uvcoord; - - /* coordinate used for calculating radius et al set in geometry shader */ - out vec2 particlecoord; - - /* downsampling coordinates */ - out vec2 downsample1; - out vec2 downsample2; - out vec2 downsample3; - out vec2 downsample4; -#endif +in vec2 pos; +in vec2 uvs; +/* initial uv coordinate */ +out vec2 uvcoord; + +/* coordinate used for calculating radius et al set in geometry shader */ +out vec2 particlecoord; + +/* downsampling coordinates */ +out vec2 downsample1; +out vec2 downsample2; +out vec2 downsample3; +out vec2 downsample4; uniform vec2 invrendertargetdim; uniform ivec2 rendertargetdim; |