浏览代码

WebGLCapabilities: Clean up.

Mugen87 5 年之前
父节点
当前提交
5106d9e6c8
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/renderers/webgl/WebGLCapabilities.js

+ 3 - 3
src/renderers/webgl/WebGLCapabilities.js

@@ -31,7 +31,7 @@ function WebGLCapabilities( gl, extensions, parameters ) {
 		if ( precision === 'highp' ) {
 		if ( precision === 'highp' ) {
 
 
 			if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.HIGH_FLOAT ).precision > 0 &&
 			if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.HIGH_FLOAT ).precision > 0 &&
-			     gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.HIGH_FLOAT ).precision > 0 ) {
+				gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.HIGH_FLOAT ).precision > 0 ) {
 
 
 				return 'highp';
 				return 'highp';
 
 
@@ -44,7 +44,7 @@ function WebGLCapabilities( gl, extensions, parameters ) {
 		if ( precision === 'mediump' ) {
 		if ( precision === 'mediump' ) {
 
 
 			if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.MEDIUM_FLOAT ).precision > 0 &&
 			if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.MEDIUM_FLOAT ).precision > 0 &&
-			     gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT ).precision > 0 ) {
+				gl.getShaderPrecisionFormat( gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT ).precision > 0 ) {
 
 
 				return 'mediump';
 				return 'mediump';
 
 
@@ -58,7 +58,7 @@ function WebGLCapabilities( gl, extensions, parameters ) {
 
 
 	/* eslint-disable no-undef */
 	/* eslint-disable no-undef */
 	var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) ||
 	var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) ||
-				   ( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext );
+		( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext );
 	/* eslint-enable no-undef */
 	/* eslint-enable no-undef */
 
 
 	var precision = parameters.precision !== undefined ? parameters.precision : 'highp';
 	var precision = parameters.precision !== undefined ? parameters.precision : 'highp';