Korchy (korchy) wrote,
Korchy
korchy

Blender, OSL: шейдер Phong






#include "stdosl.h"

shader node_phong_bsdf (
   color Color = color(0.8,0.8,0.8),
   float Exponent = 0.0,
   normal Normal = N,
   output closure color BSDF = diffuse(Normal))
   {
      BSDF = Color * microfacet_beckmann(Normal, Exponent);
   }

Источник

Tags: blender_tips, cycles, osl
Subscribe

Comments for this post were disabled by the author