提交 c078ef18 编写于 作者: A alteredq

Added fix for troubles with setting anisotropy for float textures on Linux.

Phew! Thanks @mrdoob for valiant testing.
上级 ece0e5b3
此差异已折叠。
此差异已折叠。
......@@ -6010,9 +6010,9 @@ THREE.WebGLRenderer = function ( parameters ) {
}
if ( _glExtensionTextureFilterAnisotropic ) {
if ( _glExtensionTextureFilterAnisotropic && texture.type !== THREE.FloatType ) {
_gl.texParameterf( textureType, _glExtensionTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, texture.anisotropy );
_gl.texParameterf( textureType, _glExtensionTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, Math.min( texture.anisotropy, _maxAnisotropy ) );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册