Skip to content

How to add normals and UV data? #3

Open
@dev20240517

Description

@dev20240517

var mesh = new DracoMesh();
var attrPos = PointAttribute.Wrap(AttributeType.Position, controlPoints);
mesh.AddAttribute(attrPos);
mesh.Indices.AddRange(indices);

How to add normals and UV data?
Use the following method to compress errors.

var attrNormal = PointAttribute.Wrap(AttributeType.Normal,1, normals.ToArray());
mesh.AddAttribute(attrNormal);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions