-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShaderMaterial: Extension fragDepth no longer working. #18576
Comments
Otherwise, it is no longer possible to enable the fragDepth extension. Fixes mrdoob#18576
Hello, Upon doing an excellent threejsfundementals.org tutorial https://threejsfundamentals.org/threejs/lessons/threejs-fundamentals.html, where at the bottom it shows you three cubes spinning, I am getting two warnings as follows for v113 but if you change it to v112 or below say v110 it is fine errors go away as stated by @dragly. Is this part of that bug? Hope this helps. THREE.WebGLRenderer: EXT_frag_depth extension not supported. THREE.WebGLRenderer: EXT_shader_texture_lod extension not supported. Thanks |
I don't think these warnings are related to this issue. Seems like the mentioned extensions are not supported by your platform. |
I thought the same thing as well but find it odd that it would work for v112 but not v113. If you goto a codepen example for that link I gave with the three cubes and click on the console and change to v113 what does it say on your platform? |
Do you mean the live examples on Also note that this issue only affects custom materials which enable a specific extension. This is not relevant for the examples at |
Ok thank you, I will try and look more into this. |
Description of the problem
In the latest version of three.js, the fragDepth extension no longer works.
Here is an example that simply sets the fragment depth in version r110, which works fine:
https://jsfiddle.net/5o9s8kru/
Here is a corresponding example using version r113:
https://jsfiddle.net/5o9s8kru/1/
The relevant shader material is set up as follows:
In the most recent version, the shader compilation fails with
The error is caused by a typo introduced in #18279, where
fragDepth
is replaced withfrawbuffer
:#18279 (comment)
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: