Comments (3)
The issue also exists with WebGPU and requires an extension.
https://www.w3.org/TR/webgpu/#float32-filterable
from three.js.
A good place for this check in would be in setTextureParameters()
in WebGLTextures
. For now, I would specifically catch the OES_texture_float_linear
issue so maybe this code is sufficient:
if ( texture.type === FloatType && extensions.has( 'OES_texture_float_linear' ) === false &&
( texture.magFilter === LinearFilter || texture.magFilter === LinearMipmapNearestFilter || texture.magFilter === NearestMipmapLinearFilter || texture.magFilter === LinearMipmapLinearFilter ||
texture.minFilter === LinearFilter || texture.minFilter === LinearMipmapNearestFilter || texture.minFilter === NearestMipmapLinearFilter || texture.minFilter === LinearMipmapLinearFilter ) ) {
console.warn( 'THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.' );
}
from three.js.
That sounds good to me 👍
from three.js.
Related Issues (20)
- The viewport doesn't scale on old device (Redmi 4X, Android 7, Chrome) HOT 3
- XRButton defaults to `local-floor` HOT 7
- Automatic frustum culling on InstancedMesh does not update correctly HOT 3
- WebGPURenderer, NodeMaterial: same variant between different Skeletons? HOT 2
- OrbitControls throws on pointerUp event HOT 8
- Camera rotation update stutters when mouse left click HOT 3
- GLTFLoader -- TypeError: `this` is undefined -- thrown internally when attempting to call GLTFLoader.Load - Three.js R161 HOT 4
- 3DM geometry appears black in large/certain files after upgrading to latest version HOT 6
- Frustum: IntersectsBox function can produce incorrect results HOT 4
- Documentation: Suggest common or required texture color spaces HOT 1
- Please add three.js/three.min.js back HOT 2
- WebGPURenderer: material back normal is not correct HOT 1
- PositionalAudio doesnt work on VisionOS in VR HOT 12
- `VideoFrame` not supported as Texture source HOT 5
- Using GLTFLoader to load models causes high memory usage, suspected of not releasing memory in time. HOT 6
- Object center not correct after rotate HOT 3
- CurveModifier: Shadow position will not be updated. HOT 3
- VOXLoader.js cannot load MagicaVoxel vox files HOT 8
- Progressive Lightmaps example is broken HOT 1
- PSD textures are not supported, creating placeholder texture when loading an FBX file HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three.js.