Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. In OpenGL ES 2.0 / GLSL, where do you need precision specifiers?
  2. gl_FragColor = lowp vec4(1);
  3.        
  4. lowp float floaty = 1. * 2.;
  5. floaty = lowp 1. * lowp 2.;
  6.        
  7. dot(gl_LightSource[0].position.xyz, gl_NormalMatrix * gl_Normal)
  8.        
  9. lowp dot(lowp gl_LightSource[0].position.xyz, lowp gl_NormalMatrix * lowp gl_Normal)
  10.        
  11. precision highp float;
  12.        
  13. precision highp float;
  14. precision highp int;
  15. precision lowp sampler2D;
  16. precision lowp samplerCube;
  17.        
  18. precision mediump int;
  19. precision lowp sampler2D;
  20. precision lowp samplerCube;