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

gpu_shader_material_anisotropic.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1137d9d0e7d5f743cfbd0534ce01244df0e9dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef VOLUMETRICS
void node_bsdf_anisotropic(vec4 color,
                           float roughness,
                           float anisotropy,
                           float rotation,
                           vec3 N,
                           vec3 T,
                           out Closure result)
{
  node_bsdf_glossy(color, roughness, N, -1, result);
}
#else
/* Stub anisotropic because it is not compatible with volumetrics. */
#  define node_bsdf_anisotropic(a, b, c, d, e, f, g) (g = CLOSURE_DEFAULT)
#endif