+#include "common.h"
+
+static void render_terrain(m4x4f projection, v3f camera);
+static void render_sky(m4x3f camera);
+
#ifndef TERRAIN_H
#define TERRAIN_H
-#define VG_3D
-#include "vg/vg.h"
#include "model.h"
#include "render.h"
+#include "water.h"
#include "shaders/terrain.h"
#include "shaders/sky.h"
shader_terrain_uPv( projection );
shader_terrain_uMdl( identity_matrix );
shader_terrain_uCamera( camera );
+ shader_terrain_uPlane( (v4f){ 0.0f,1.0f,0.0f, wrender.height } );
}
static void render_sky(m4x3f camera)