projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed issues in shaders
[demo]
/
src
/
main.cc
diff --git
a/src/main.cc
b/src/main.cc
index
c48b383
..
1734fc6
100644
(file)
--- a/
src/main.cc
+++ b/
src/main.cc
@@
-185,6
+185,7
@@
static bool init(Gfx_API api)
skybox_tex = gfx_create_texture();
skybox_tex->load("data/cubemap/cubemap.hdr");
skybox_tex = gfx_create_texture();
skybox_tex->load("data/cubemap/cubemap.hdr");
+ // skybox_tex->load("data/cubemap/irradiance.hdr");
terrain_rend->set_sky_tex(skybox_tex);
if(!terrain_rend->create()) {
terrain_rend->set_sky_tex(skybox_tex);
if(!terrain_rend->create()) {
@@
-330,5
+331,6
@@
static void display()
cow_pos.y = terrain.get_height(cow_pos);
cow_object->transform.translation(cow_pos);
cow_pos.y = terrain.get_height(cow_pos);
cow_object->transform.translation(cow_pos);
+ cow_rend->fog_density = fog_density;
cow_rend->draw();
}
\ No newline at end of file
cow_rend->draw();
}
\ No newline at end of file