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_toon.glsl

10 lines
293 B
GLSL
Raw Normal View History

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