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

gpu_shader_compositor_normal.glsl « library « compositor « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2e3b6c4aaae344e63578d58b56325409d2f5f07 (plain)
1
2
3
4
5
6
7
8
9
void node_composite_normal(vec3 input_vector,
                           vec3 input_normal,
                           out vec3 result_normal,
                           out float result_dot)
{
  vec3 normal = normalize(input_normal);
  result_normal = normal;
  result_dot = -dot(input_vector, normal);
}