public void init() { TerrainGlobals.getVisual().getLODVB(ref mVB, ref mNumVerts, 0); mNumPrims = (uint)((mNumVerts) / 3); mPositionsTexture = TerrainGlobals.getVisual().giveEntireTerrainInTexture(); loadShader(); }