Skip to content

Commit

Permalink
cleanup demo + fix assets_gui lighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Dec 20, 2023
1 parent 876876d commit 045cbed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets_gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ impl engine::framework::State for State {

let sun = vec3(1.0, -1.0, 1.0).normalize();
params.time_always = (params.time_always + ctx.delta) % 3600.0;
params.sun_col = sun.z.max(0.0).sqrt().sqrt()
params.sun_col = 4.0
* sun.z.max(0.0).sqrt().sqrt()
* LinearColor::new(1.0, 0.95 + sun.z * 0.05, 0.95 + sun.z * 0.05, 1.0);
params.sun = sun;
params.viewport = Vec2::new(gfx.size.0 as f32, gfx.size.1 as f32);
Expand Down

0 comments on commit 045cbed

Please sign in to comment.