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:
authorHans Goudey <h.goudey@me.com>2022-02-21 21:07:14 +0300
committerHans Goudey <h.goudey@me.com>2022-02-21 21:07:14 +0300
commit9762dbe94e65e4f42061fdbb941a4c12660a6722 (patch)
treec8cb1d42a8889ae9e07494e2a591b49cbfe4da6b /source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc
parent68a2dc58dee719dc37a0ba2b84c5488999c2a458 (diff)
parentbe6bcaa8c13dfca98e56d81afd3d19ba226c2699 (diff)
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc b/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc
index 8a3b0258b55..a24b4379e69 100644
--- a/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc
@@ -38,7 +38,7 @@ static int node_shader_gpu_ambient_occlusion(GPUMaterial *mat,
GPU_material_flag_set(mat, GPU_MATFLAG_DIFFUSE);
- float inverted = node->custom2 ? 1.0f : 0.0f;
+ float inverted = (node->custom2 & SHD_AO_INSIDE) ? 1.0f : 0.0f;
float f_samples = divide_ceil_u(node->custom1, 4);
return GPU_stack_link(mat,