Korchy (korchy) wrote,
Korchy
korchy

OSL-шейдер градиента

Простой шейдер на OSL для накладывания градиента







shader Gradient (
   vector Vector = P,
   float Multiply = 1.0,
   output float Factor = 0.0
)
{
   vector LocalPointPosition = transform("object",Vector);
   Factor = ((LocalPointPosition[1]+1.0)/2.0)*Multiply;
}

Ноды




Скомпилированный OSL-шейдер: Градиент

Tags: blender_tips, cycles, osl
Subscribe

Comments for this post were disabled by the author