|
|
@@ -16,7 +16,7 @@ import { NodeAccess } from '../../../nodes/core/constants.js';
|
|
|
import VarNode from '../../../nodes/core/VarNode.js';
|
|
|
import ExpressionNode from '../../../nodes/code/ExpressionNode.js';
|
|
|
|
|
|
-import { FloatType, RepeatWrapping, ClampToEdgeWrapping, MirroredRepeatWrapping, NearestFilter, Compatibility } from '../../../constants.js';
|
|
|
+import { FloatType, RepeatWrapping, ClampToEdgeWrapping, MirroredRepeatWrapping, NearestFilter, Compatibility, ShortType, UnsignedShortType } from '../../../constants.js';
|
|
|
import { warn, error } from '../../../utils.js';
|
|
|
|
|
|
import { GPUShaderStage } from '../utils/WebGPUConstants.js';
|
|
|
@@ -835,7 +835,8 @@ class WGSLNodeBuilder extends NodeBuilder {
|
|
|
return this.getComponentTypeFromTexture( texture ) !== 'float' ||
|
|
|
( ! this.isAvailable( 'float32Filterable' ) && texture.type === FloatType ) ||
|
|
|
( this.isSampleCompare( texture ) === false && texture.minFilter === NearestFilter && texture.magFilter === NearestFilter ) ||
|
|
|
- this.renderer.backend.utils.getTextureSampleData( texture ).primarySamples > 1;
|
|
|
+ this.renderer.backend.utils.getTextureSampleData( texture ).primarySamples > 1 ||
|
|
|
+ texture.normalized === true && ( texture.type === ShortType || texture.type === UnsignedShortType );
|
|
|
|
|
|
}
|
|
|
|