Hi Frank,
the reason of failing is obvious - array not big enough.
Try to think how to calculate how much points it will have, if you go from -2 to 1 by 0.0055 and -1.5 to 1.5 by 0.0055.
Three hints:
- 1-(-2) = 3, 1.5-(-1.5) = 3
- step is not well chosen
- size of vertex and color array does not match
Petr
Bookmarks