WebGL GLSL 精度问题

740 阅读1分钟
  • There is no default precision in WebGL fragment shaders.
  • High precision is default for vertex shaders.
precision highp float;
  • 常用是mediump
precision mediump float;
  • 不建议用lowp.大部分移动设备不支持
  • 移动设备上,一般不建议用highp,不支持