Skip to content

Commit

Permalink
Update environment maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
entropylost committed Oct 13, 2024
1 parent 669f2ee commit 3b391a5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 1 deletion.
Binary file modified env/default.tiff
Binary file not shown.
Binary file added env/desert.tiff
Binary file not shown.
Binary file modified env/golden.tiff
Binary file not shown.
Binary file added env/night.tiff
Binary file not shown.
Binary file modified env/sunset.tiff
Binary file not shown.
Binary file added env/vertical.tiff
Binary file not shown.
13 changes: 12 additions & 1 deletion src/bin/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ use glam::Vec3 as FVec3;
use std::f32::consts::TAU;

fn skylight(angle: f32) -> FVec3 {
// Default:
let sky_color = FVec3::new(0.3, 0.7, 1.0);
let sun_color = FVec3::new(1.0, 1.0, 0.8) * 3.0;
let sun_color = FVec3::new(1.0, 1.0, 0.8) * 5.0;
// Night:
// let sky_color = FVec3::new(0.2, 0.15, 0.6) * 0.3;
// let sun_color = FVec3::new(1.0, 0.3, 0.1) * 0.0;
// Desert:
// let sky_color = FVec3::new(0.6, 0.7, 1.0);
// let sun_color = FVec3::new(1.0, 0.9, 0.4) * 4.0;
// Golden:
// let sky_color = FVec3::new(0.6, 0.5, 0.7);
// let sun_color = FVec3::new(1.0, 0.8, 0.2) * 4.0;

let sun_size = 0.3;
let sun_angle = 1.0;

Expand Down

0 comments on commit 3b391a5

Please sign in to comment.