r s l    d i s p l a c e m e n t s


These images show the results of using the RenderMan Shading Language (RSL) to write a variety of special effects displacement shaders. The notes and RSL code accompanying each image explain how each effect was achieved.



 




 

if(s >= 0.45 && s < 0.6 || t >= 0.45 && t < 0.6)

hump = 2;


 




 

if(s >= 0.4 && s < 0.6 && t >= 0.4 && t < 0.6)

hump = -2;



 




 

if(s >= 0.8 && s < 1.0 || s >= 0.0 && s < 0.2) if(t >= 0.4 && t < 0.6)

hump = -2;


 




 

if(s >= 0.33 && s <= 0.66)

hump = t*3;


 




 

float d = sqrt((s - 0) * (s - 0) + (t - 0) * (t - 0)); if (d <= 0.6)

hump = -2;