Vertex constructor
Vertex(
- Vector3 pos,
- Vector3 normal,
- Vector3 uv, [
- Vector3? color,
Implementation
Vertex(Vector3 pos,Vector3 normal,Vector3 uv,[ Vector3? color]) {
position = Vector3.copy(pos);
this.normal = Vector3.copy(normal);
this.uv = Vector3.copy(uv);
this.color = color != null?Vector3.copy(color):null;
}