ColinGilbert / noobwerkz-engine

My happy playground of programmer fun.
Apache License 2.0
20 stars 3 forks source link

Need different mesh types for terrain and indexed #66

Closed ColinGilbert closed 3 years ago

ColinGilbert commented 3 years ago

Terrain uses non-indexed meshes and crashes when an indexed variety is used. The code is ambiguous; we need to eiither implicitly flatten meshes upon uploading to GPU, or create a un-indexed mesh for terrain use.

ColinGilbert commented 3 years ago

Problem was in the drawing code... :+1: