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

gpu_shader_material_ambient_occlusion.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ba1f6f7368ffff60b8c39f7170e3d3733a2b131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

void node_ambient_occlusion(vec4 color,
                            float dist,
                            vec3 normal,
                            const float inverted,
                            const float sample_count,
                            out vec4 result_color,
                            out float result_ao)
{
  result_ao = ambient_occlusion_eval(normal, dist, inverted, sample_count);
  result_color = result_ao * color;
}