Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 8th, 2018 45 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. uniform sampler2D sampler2d0;
  2.  
  3. //-------------
  4.  
  5. varying vec2 textureCoordinate;
  6. varying vec3 lightVector;
  7. varying vec3 eyeVector;
  8.  
  9. //uniform sampler2D sampler2d1;
  10. uniform sampler2D sampler2d1;
  11. uniform sampler2D sampler2d2;
  12. uniform sampler2D sampler2d4;
  13. uniform sampler2D sampler2d3;
  14. uniform sampler2D sampler2d5;
  15.  
  16. uniform float scale;
  17.  
  18. uniform vec4 ambientColor;
  19. uniform vec4 diffuseColor;
  20.  
  21.    
  22.  
  23.  
  24. void main(void)
  25. {
  26.     vec4 corTexFriso;
  27.     vec4 corTexPadrao;
  28.  
  29.     corTexFriso = texture2D(sampler2d0, gl_TexCoord[0].xy);
  30.     corTexPadrao = texture2D(sampler2d3, gl_TexCoord[0].xy);
  31.  
  32.     if(corTexFriso.r <= 0.15 && corTexFriso.g <= 0.15 && corTexFriso.b <= 0.15)
  33.     {
  34.         gl_FragColor = corTexFriso;
  35.     }
  36.     else
  37.     {
  38.         gl_FragColor = corTexPadrao;
  39.     }
  40.  
  41.  
  42.  
  43.  
  44. //   gl_FragColor = texture2D(sampler2d3, gl_TexCoord[0].xy);
  45. }
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