engine icon indicating copy to clipboard operation
engine copied to clipboard

Material clone/copy does not preserve custom shader parameters

Open lucaheft opened this issue 11 months ago • 0 comments

Description

Custom shader parameters are lost when cloning/copying a material. Which can result in wrong rendering of meshes.

Steps to Reproduce

  1. Launch https://playcanvas.com/project/1196941/overview/bug-clone-overwritten-material
  2. Open Dev Console
  3. 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

lucaheft avatar Mar 05 '24 12:03 lucaheft