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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_shaderToRgb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.c b/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.c
index 583ec7edcc3..3a47fe3e991 100644
--- a/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.c
+++ b/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.c
@@ -38,6 +38,10 @@ static int node_shader_gpu_shadertorgb(GPUMaterial *mat,
GPUNodeStack *in,
GPUNodeStack *out)
{
+ /* Because node_shader_to_rgba is using fallback_cubemap()
+ * we need to tag material as glossy. */
+ GPU_material_flag_set(mat, GPU_MATFLAG_GLOSSY);
+
return GPU_stack_link(mat, node, "node_shader_to_rgba", in, out);
}