blender/release/scripts/templates_osl/toon_closure.osl

12 lines
290 B
Plaintext
Raw Normal View History

shader node_toon_bsdf(
color Color = 0.8,
float Size = 0.5,
float Smooth = 0.0,
normal Normal = N,
output closure color Diffuse = 0,
output closure color Specular = 0)
{
Diffuse = Color * diffuse_toon(Normal, Size, Smooth);
Specular = Color * specular_toon(Normal, Size, Smooth);
}