|
@@ -142,36 +142,6 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
- this.getMaxPrecision = function ( precision ) {
|
|
|
-
|
|
|
- if ( precision === 'highp' ) {
|
|
|
-
|
|
|
- if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.HIGH_FLOAT ).precision > 0 &&
|
|
|
- gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.HIGH_FLOAT ).precision > 0 ) {
|
|
|
-
|
|
|
- return 'highp';
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- precision = 'mediump';
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( precision === 'mediump' ) {
|
|
|
-
|
|
|
- if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.MEDIUM_FLOAT ).precision > 0 &&
|
|
|
- gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT ).precision > 0 ) {
|
|
|
-
|
|
|
- return 'mediump';
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return 'lowp';
|
|
|
-
|
|
|
- };
|
|
|
-
|
|
|
this.setBlending = function ( blending, blendEquation, blendSrc, blendDst, blendEquationAlpha, blendSrcAlpha, blendDstAlpha ) {
|
|
|
|
|
|
if ( blending !== currentBlending ) {
|