Browse Source

Allowing anisotropy for floating point textures if linear interpolation is supported

Michael Bond 10 years ago
parent
commit
aa981b4c70
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/renderers/WebGLRenderer.js

+ 5 - 1
src/renderers/WebGLRenderer.js

@@ -2852,7 +2852,11 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		extension = extensions.get( 'EXT_texture_filter_anisotropic' );
 
-		if ( extension && texture.type !== THREE.FloatType && texture.type !== THREE.HalfFloatType ) {
+		if ( extension ) {
+			if ( texture.type === THREE.FloatType && !extensions.get( 'OES_texture_float_linear' ) ||
+					texture.type === THREE.HalfFloatType && !extensions.get( 'OES_texture_half_float_linear' ) ) {
+				return;
+			}
 
 			if ( texture.anisotropy > 1 || properties.get( texture ).__currentAnisotropy ) {