Description
WebGPU renderer merges multiple texture uniform nodes into one uniform if they use the same texture at compile time. If one of these uniforms is updated at a later point, this requires a recompile of the material, so it seems rather slow.
There is an additional problem, that forcing a recompile is not trivial if the uniform values aren't exposed are properties on the material (see #34392).
Reproduction steps
- open the live example
- the sphere should become yellow after a second but stays red instead
- uncomment the
// this.forceRecompile = 1; line
- now it should work as expected
Code
Live example
https://jsfiddle.net/6fochL70/
Screenshots
No response
Version
r185
Device
No response
Browser
No response
OS
No response
Description
WebGPU renderer merges multiple texture uniform nodes into one uniform if they use the same texture at compile time. If one of these uniforms is updated at a later point, this requires a recompile of the material, so it seems rather slow.
There is an additional problem, that forcing a recompile is not trivial if the uniform values aren't exposed are properties on the material (see #34392).
Reproduction steps
// this.forceRecompile = 1;lineCode
// code goes hereLive example
https://jsfiddle.net/6fochL70/
Screenshots
No response
Version
r185
Device
No response
Browser
No response
OS
No response