Browse Source

Add precision hint in fragment shader

master
Simon Leistikow 5 years ago
parent
commit
3c6c8b2803
  1. 1
      app/src/main/java/de/trac/spherical/rendering/PhotoSphereRenderer.java

1
app/src/main/java/de/trac/spherical/rendering/PhotoSphereRenderer.java

@ -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" +

Loading…
Cancel
Save