CustomMaterial.clone() Not Currently Working

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:


1 Like

Pinging @nasimiasl

1 Like

hey i am on it
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.

1 Like

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