示例#1
0
文件: Face3.go 项目: uzudil/three.go
func NewArraysFace3(a, b, c int, normals []*math.Vector3, colors []*math.Color, materialIndex int) *Face3 {
	return &Face3{
		A:             a,
		B:             b,
		C:             c,
		Normal:        math.NewEmptyVector3(),
		VertexNormals: normals,
		Color:         math.NewDefaultColor(),
		VertexColors:  colors,
		MaterialIndex: materialIndex,
	}
}
示例#2
0
文件: Face3.go 项目: uzudil/three.go
func NewDefaultFace3(a, b, c int) *Face3 {
	return NewFace3(a, b, c, math.NewEmptyVector3(), math.NewDefaultColor(), 0)
}