Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
index 8c2aff45679..e315d2fb97a 100644
--- a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
@@ -107,7 +107,7 @@ void accumulate_pass(void) {
if (dot(particlecoord, particlecoord) > r * r)
discard;
- gl_FragColor = color;
+ gl_FragData[0] = color;
}
#define MERGE_THRESHOLD 4.0
@@ -151,7 +151,7 @@ void final_pass(void) {
finalcolor = mix(finalcolor, nearcolor, nearweight / totalweight);
}
- gl_FragColor = finalcolor;
+ gl_FragData[0] = finalcolor;
}
void main()