projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stuff
[carveJwlIkooP6JGAAIwe30JlM.git]
/
terrain.h
diff --git
a/terrain.h
b/terrain.h
index 3005c93e4ee9620ade79792299e323f7e8e81049..d35dc0ab0f39ffdaa3c57b53bb891d86b48ee124 100644
(file)
--- a/
terrain.h
+++ b/
terrain.h
@@
-1,10
+1,14
@@
+#include "common.h"
+
+static void render_terrain(m4x4f projection, v3f camera);
+static void render_sky(m4x3f camera);
+
#ifndef TERRAIN_H
#define TERRAIN_H
#ifndef TERRAIN_H
#define TERRAIN_H
-#define VG_3D
-#include "vg/vg.h"
#include "model.h"
#include "render.h"
#include "model.h"
#include "render.h"
+#include "water.h"
#include "shaders/terrain.h"
#include "shaders/sky.h"
#include "shaders/terrain.h"
#include "shaders/sky.h"
@@
-52,6
+56,7
@@
static void render_terrain(m4x4f projection, v3f camera)
shader_terrain_uPv( projection );
shader_terrain_uMdl( identity_matrix );
shader_terrain_uCamera( camera );
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)
}
static void render_sky(m4x3f camera)