提交 bcbbb2ed 编写于 作者: O OpenShift guest

update Webglrenderer2 to make bc941738 work also

上级 ef9984b9
......@@ -154,6 +154,9 @@ THREE.WebGLRenderer = THREE.WebGLRenderer2 = function ( parameters ) {
this.getPrecision = renderer.getPrecision;
this.getContext = renderer.getContext;
this.supportsVertexTextures = renderer.supportsVertexTextures;
this.supportsFloatTextures = renderer.supportsFloatTextures;
this.supportsStandardDerivatives = renderer.supportsStandardDerivatives;
this.supportsCompressedTextureS3TC = renderer.supportsCompressedTextureS3TC;
this.getMaxAnisotropy = renderer.getMaxAnisotropy;
this.setSize = renderer.setSize;
this.setViewport = renderer.setViewport;
......
......@@ -242,6 +242,24 @@ THREE.WebGLRenderer2.LowLevelRenderer = function(parameters){
return _supportsVertexTextures;
};
function supportsFloatTextures() {
return _glExtensionTextureFloat;
};
function supportsStandardDerivatives() {
return _glExtensionStandardDerivatives;
};
function supportsCompressedTextureS3TC() {
return _glExtensionCompressedTextureS3TC;
};
function getMaxAnisotropy() {
......@@ -1441,6 +1459,9 @@ THREE.WebGLRenderer2.LowLevelRenderer = function(parameters){
this.getCurrentWidth = getCurrentWidth;
this.getCurrentHeight = getCurrentHeight;
this.supportsVertexTextures = supportsVertexTextures;
this.supportsFloatTextures = supportsFloatTextures;
this.supportsStandardDerivatives = supportsStandardDerivatives;
this.supportsCompressedTextureS3TC = supportsCompressedTextureS3TC;
this.getMaxAnisotropy = getMaxAnisotropy;
this.setRenderTarget = setRenderTarget;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册