Skip to content

Material Clone? #2442

@anan1213095357

Description

@anan1213095357

Question and/or Comment

How can I clone materials onto another model? I tried using

                var pass = new MaterialPass();
                material.Passes.Add(pass);

                pass.Parameters.Set(MaterialKeys.DiffuseValue, color);
                pass.Parameters.Set(MaterialKeys.EmissiveValue, color);
                pass.Parameters.Set(MaterialKeys.EmissiveIntensity, emissiveIntensity);

The material of the object will turn black

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions