需要在片段着色器设置:
precision highp float
Must set default precision for fragment shader, or the compiler will report such error:
no default precision defined for variable.
But vertex shader need not.
本文介绍了在片段着色器中设置默认精度的重要性,如果不设置可能会导致编译器报告未定义变量精度的错误。文中特别指出顶点着色器则不需要进行这样的设置。
需要在片段着色器设置:
precision highp float
Must set default precision for fragment shader, or the compiler will report such error:
no default precision defined for variable.
But vertex shader need not.
1万+

被折叠的 条评论
为什么被折叠?