vpenades / SharpGLTF

glTF reader and writer for .NET Standard
MIT License
467 stars 75 forks source link

How to add normal info and texture info to one VERTEX? #75

Closed 674019130 closed 3 years ago

674019130 commented 3 years ago

Hi!

Now I came across a question:

VertexTypes only contains VertexPositionNormal, VertexColor1Texture2 etc.

I can't add normal info and texture info to the same VERTEX.

Is there any solution?

Thx a lot, have a good day : )

vpenades commented 3 years ago

vertex types are designed so they can be combined.

for example:

var vertex = new VertexBuilder<VertexPositionNormal, VertexColor1Texture2 , VertexEmpty>();
674019130 commented 3 years ago

vertex types are designed so they can be combined.

for example:

var vertex = new VertexBuilder<VertexPositionNormal, VertexColor1Texture2 , VertexEmpty>();

Thx for your patient reply : )