Files
test/source/blender/gpu/shaders/material/gpu_shader_material_velvet.glsl
Clément Foucault 062a843bfb EEVEE: Fix undefined behavior when using BSDF nodes inside volume shaders
This should fix T76171 Eevee bsdf shaders glitches
2020-06-30 01:32:00 +02:00

10 lines
282 B
GLSL

#ifndef VOLUMETRICS
void node_bsdf_velvet(vec4 color, float sigma, vec3 N, out Closure result)
{
node_bsdf_diffuse(color, 0.0, N, result);
}
#else
/* Stub velvet because it is not compatible with volumetrics. */
# define node_bsdf_velvet(a, b, c, d) (d = CLOSURE_DEFAULT)
#endif