提交 bc941738 编写于 作者: B Ben Adams

Exposed more supports tests

Extra feature detection tests, to know what to load when using library

e.g. 
If no compressed texture support, load regular textures etc
If no float texture support, do multi pass rendering and pack float into rgba
If no dervitives do something else...
上级 2f2d6a07
......@@ -263,6 +263,24 @@ THREE.WebGLRenderer = function ( parameters ) {
};
this.supportsFloatTextures = function () {
return _glExtensionTextureFloat;
};
this.supportsStandardDerivatives = function () {
return _glExtensionStandardDerivatives;
};
this.supportsCompressedTextureS3TC = function () {
return _glExtensionCompressedTextureS3TC;
};
this.getMaxAnisotropy = function () {
return _maxAnisotropy;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册