Daniel Salvadori 7 лет назад
Родитель
Сommit
2cad427734
2 измененных файлов с 9 добавлено и 9 удалено
  1. 1 1
      geometry/morph.go
  2. 8 8
      graphic/lines.go

+ 1 - 1
geometry/morph.go

@@ -193,7 +193,7 @@ func (mg *MorphGeometry) RenderSetup(gs *gls.GLS) {
 	activeMorphTargets, activeWeights := mg.ActiveMorphTargets()
 
 	// If the morph geometry has more targets than the shader supports we need to update attribute names
-	// as weights change - we only send the top morph targets with highest weight
+	// as weights change - we only send the top morph targets with highest weights
 	if len(mg.targets) > MaxActiveMorphTargets {
 		mg.UpdateTargetAttributes(activeMorphTargets)
 	}

+ 8 - 8
graphic/lines.go

@@ -18,14 +18,6 @@ type Lines struct {
 	uniMVPm gls.Uniform // Model view projection matrix uniform location cache
 }
 
-// Init initializes the Lines object and adds the specified material.
-func (l *Lines) Init(igeom geometry.IGeometry, imat material.IMaterial) {
-
-	l.Graphic.Init(igeom, gls.LINES)
-	l.AddMaterial(l, imat, 0, 0)
-	l.uniMVPm.Init("MVP")
-}
-
 // NewLines returns a pointer to a new Lines object.
 func NewLines(igeom geometry.IGeometry, imat material.IMaterial) *Lines {
 
@@ -34,6 +26,14 @@ func NewLines(igeom geometry.IGeometry, imat material.IMaterial) *Lines {
 	return l
 }
 
+// Init initializes the Lines object and adds the specified material.
+func (l *Lines) Init(igeom geometry.IGeometry, imat material.IMaterial) {
+
+	l.Graphic.Init(igeom, gls.LINES)
+	l.AddMaterial(l, imat, 0, 0)
+	l.uniMVPm.Init("MVP")
+}
+
 // RenderSetup is called by the engine before drawing this geometry.
 func (l *Lines) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo) {