|
|
@@ -36,8 +36,8 @@ func NewGridHelper(size, step float32, color *math32.Color) *GridHelper {
|
|
|
geom := geometry.NewGeometry()
|
|
|
geom.AddVBO(
|
|
|
gls.NewVBO().
|
|
|
- AddAttrib("VertexPosition", 3).
|
|
|
- AddAttrib("VertexColor", 3).
|
|
|
+ AddAttribEx("VertexPosition", 3, 6*gls.FloatSize, 0).
|
|
|
+ AddAttribEx("VertexColor", 3, 6*gls.FloatSize, uint32(3*gls.FloatSize)).
|
|
|
SetBuffer(positions),
|
|
|
)
|
|
|
|