We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
it will cause an error when setting a uniform value specific to MeshDistanceMaterial: Cannot read properties of undefined (reading 'value') at https://github.com/mrdoob/three.js/blob/master/src/renderers/webgl/WebGLMaterials.js#L665
Cannot read properties of undefined (reading 'value')
that is because the node builder overwrites it here: https://github.com/mrdoob/three.js/blob/master/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js#L96
which happens because of this: https://github.com/mrdoob/three.js/blob/master/examples/jsm/renderers/webgl/nodes/WebGLNodes.js#L13
the fix is to just overwrite onBuild again for MeshDistanceMaterial.
THREE.MeshDistanceMaterial.prototype.onBuild = () => undefined;
or disabling shadowmap...
n/a
No response
145
Desktop
Chrome
Windows
The text was updated successfully, but these errors were encountered:
Hi @patricklx
Are you using a NodeMaterial in MeshDistanceMaterial? I was in doubt how material.isNodeMaterial === true in WebGLNodes for MeshDistanceMaterial?
NodeMaterial
MeshDistanceMaterial
material.isNodeMaterial === true
WebGLNodes
https://github.com/mrdoob/three.js/blob/master/examples/jsm/renderers/webgl/nodes/WebGLNodes.js#L13
Sorry, something went wrong.
Node material integration into WebGLRenderer has been removed with r164, see #28167.
WebGLRenderer
r164
So this issue can be closed.
No branches or pull requests
Description
it will cause an error when setting a uniform value specific to MeshDistanceMaterial:
Cannot read properties of undefined (reading 'value')
at https://github.com/mrdoob/three.js/blob/master/src/renderers/webgl/WebGLMaterials.js#L665that is because the node builder overwrites it here: https://github.com/mrdoob/three.js/blob/master/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js#L96
which happens because of this: https://github.com/mrdoob/three.js/blob/master/examples/jsm/renderers/webgl/nodes/WebGLNodes.js#L13
the fix is to just overwrite onBuild again for MeshDistanceMaterial.
or disabling shadowmap...
Reproduction steps
n/a
Code
n/a
Live example
n/a
Screenshots
No response
Version
145
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: