/*Wooksang's shader for construction *layer_1 made blended color with tuberance and spline *layer_2 made black part with (1-layer_opac) *layer_line for line in surface*/ #include "rmannotes.sl" surface sculpture_animation( float Ks=0.1,Kd=0.7,Ka=0.1,freqR = 6,Km=0.1,roughness=.1; varying point Pr = 0; float ani =0; color specularcolor=1, White = color(1,1,1), Yellow = color(0.943,0.795,0.302), Blue = color(0.394,0.531,0.943), Red = color(0.943,0.162,0.109), Black = color(0,0,0), Darkblue = color(0.091,0.159,0.276), Darkred = color(0.138,0,0);) { color surface_color,layer_color=color(1,1,1),grey=0; float layer_opac,r,freq=5; point PP,QQ,newP; float size=4, i,opac=0,opac1=0,turb=0; normal Nf; vector V; /* Nf = faceforward( normalize(N), I ); V = -normalize(I);*/ surface_color=color(1,1,1); layer_opac=0; /*layer #1*/ QQ=transform("shader",P); surface_color=White; for(i=0;i