daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Oct 17th, 2014 142 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1.  
  2.             temp = $POS$-IN_pWorld;
  3.             lightDir = normalize(temp);
  4.      
  5.             dotNL = saturate(dot(normal, lightDir));
  6.      
  7.             falloff = min( 1.0/dot(temp,temp), 1.0 );
  8.      
  9.             diff += dotNL * $COLOR$ * falloff * shadow;
  10.      
  11.             temp.x = BlinnPhong(lightDir, viewVec, normal, specPow, dotNL) * falloff;
  12.             temp.x = saturate(temp.x*shadow);
  13.             refl = mix(refl, $COLOR$, temp.x);
  14.             shadow = 1.0;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top