This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl
2020-06-30 01:32:00 +02:00

16 lines
523 B
GLSL

#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