|
@@ -56,8 +56,10 @@ function WebGLCapabilities( gl, extensions, parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /* eslint-disable no-undef */
|
|
|
var isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && gl instanceof WebGL2RenderingContext ) ||
|
|
|
( typeof WebGL2ComputeRenderingContext !== 'undefined' && gl instanceof WebGL2ComputeRenderingContext );
|
|
|
+ /* eslint-enable no-undef */
|
|
|
|
|
|
var precision = parameters.precision !== undefined ? parameters.precision : 'highp';
|
|
|
var maxPrecision = getMaxPrecision( precision );
|