engine
engine copied to clipboard
Material clone/copy does not preserve custom shader parameters
Description
Custom shader parameters are lost when cloning/copying a material. Which can result in wrong rendering of meshes.
Steps to Reproduce
- Launch https://playcanvas.com/project/1196941/overview/bug-clone-overwritten-material
- Open Dev Console
- fresnelPower is undefined and not present in parameters object of the material
PS: Switching the order of execution of the scripts on the Box will render the fresnel correctly