Hey,
i found that nulling bumpTexture while useParallax is true causes a shader crash
material.bumpTexture = texture..
material.useParallax = true;
// Wait for shader compile
material.bumpTexture = null;
// Shader crashes
I would assume in this case the useParallax parameter should be silently ignored? since it requires a texture.
Babylon.js Playground (open console & click play again )
Frankly it is a user mistake and Iβm not sure we should handle thisβ¦
There are plenty of way you could break things by setting bad parameters and Babylon does not check them for performance sake.
1 Like
It is an odd use case i suppose, so that makes sense
Solution was to
- Set parallax false
- Wait for effect update
- Set bumpTexture to false & restore parallax
https://playground.babylonjs.com/#GEHSFW#1