Add precision hint in fragment shader

This commit is contained in:
Simon Leistikow 2017-09-18 02:26:20 +02:00
parent 3fbf5b67ec
commit 3c6c8b2803
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ public class PhotoSphereRenderer implements GLSurfaceView.Renderer {
* Out: sets fragment color
*/
private static final String DEFAULT_FRAGMENT_SHADER =
"precision mediump float;\n" +
"varying vec2 uv;\n" +
"uniform sampler2D tex;\n" +
"void main() {\n" +