Hey crew,
It looks like CustomMaterial is probably inheriting StandardMaterial’s clone() function, which doesn’t include its custom shader bits and bobs.
Here’s a demo: https://www.babylonjs-playground.com/#UXCB15#115
Cheers,
Matt
Hey crew,
It looks like CustomMaterial is probably inheriting StandardMaterial’s clone() function, which doesn’t include its custom shader bits and bobs.
Here’s a demo: https://www.babylonjs-playground.com/#UXCB15#115
Cheers,
Matt
Pinging @nasimiasl
hey i am on it
https://www.babylonjs-playground.com/#UXCB15#117
i try make PR
Was this ever fixed? I’m still seeing this issue in the latest version 5 release.
The playground by @nasimiasl does seem to monkey patch the issue.
hey @Frankie_Ali
the reason that not solved yet i cant find for time write complete way for clone all shader parts and detect new uniform and all etc shader stuff you most check on clone
so yes that is uncompleted task
but the best way to make simple clone is the monkey way you see in the sample but that not mean that is work for any kind customization