X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fmain.cc;h=1734fc630ebc9427540bd7162d2587f693dd2f99;hp=c48b38325b8d812effdcd7d8312febd68366ee57;hb=198fff0ac38a65f6c2db8d9061e47481febfb008;hpb=c99060df01719b24ebd793b149d3c2dc5748cad5 diff --git a/src/main.cc b/src/main.cc index c48b383..1734fc6 100644 --- 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->load("data/cubemap/irradiance.hdr"); 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_rend->fog_density = fog_density; cow_rend->draw(); } \ No newline at end of file