提交 75282ebc 编写于 作者: M Mr.doob

Merge pull request #8290 from takahirox/GetShaderPrecisionFormatPolyfill

Add getShaderPrecisionFormat polyfill
......@@ -221,6 +221,20 @@ THREE.WebGLRenderer = function ( parameters ) {
}
if ( _gl.getShaderPrecisionFormat === undefined ) {
_gl.getShaderPrecisionFormat = function () {
return {
'rangeMin': 1,
'rangeMax': 1,
'precision': 1
};
}
}
var capabilities = new THREE.WebGLCapabilities( _gl, extensions, parameters );
var state = new THREE.WebGLState( _gl, extensions, paramThreeToGL );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册