1. 默认精度
顶点着色器中默认精度
precision highp float;
precision highp int;
precision lowp sampler2D;
precision lowp samplerCube;
像素着色器中默认精度
precision mediump int;
precision lowp sampler2D;
precision lowp samplerCube;
float 没有默认精度
2. 着色器中各种类型的最低范围、精度
3. 建议
一般来说:
vertex position : highp
texture coordinate : midump
colors : lowp
参考:
http://www.khronos.org/files/opengles_shading_language.pdf (4.5 节)