|
@@ -168,10 +168,23 @@ THREE.WebGLRenderer2.LowLevelRenderer = function(parameters){
|
|
|
console.log( 'THREE.WebGLRenderer: S3TC compressed textures not supported.' );
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ if ( _gl.getShaderPrecisionFormat === undefined ) {
|
|
|
+
|
|
|
+ _gl.getShaderPrecisionFormat = function() {
|
|
|
+
|
|
|
+ return {
|
|
|
+ "rangeMin" : 1,
|
|
|
+ "rangeMax" : 1,
|
|
|
+ "precision" : 1
|
|
|
+ };
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
};
|
|
|
|
|
|
-
|
|
|
function setDefaultGLState () {
|
|
|
|
|
|
_gl.clearColor( 0, 0, 0, 1 );
|