Jelajahi Sumber

mediump in rawshader example. compatible with more mobile devices.

Mr.doob 11 tahun lalu
induk
melakukan
addc745663
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      examples/webgl_buffergeometry_rawshader.html

+ 4 - 4
examples/webgl_buffergeometry_rawshader.html

@@ -43,8 +43,8 @@
 
 		<script id="vertexShader" type="x-shader/x-vertex">
 
-			precision highp float;
-			precision highp int;
+			precision mediump float;
+			precision mediump int;
 
 			uniform mat4 modelViewMatrix; // optional
 			uniform mat4 projectionMatrix; // optional
@@ -68,8 +68,8 @@
 
 		<script id="fragmentShader" type="x-shader/x-fragment">
 
-			precision highp float;
-			precision highp int;
+			precision mediump float;
+			precision mediump int;
 
 			uniform float time;