Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaskorz committed Aug 4, 2021
1 parent 5b5c481 commit 2bc2846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ impl PredefinedFunction {
pub fn to_code(&self) -> String {
match self {
Self::Custom => "".to_string(),
Self::MirageSpherical => "let t_env = 15.0;
let t_src = 100.0;
Self::MirageSpherical => "let t_env = 15.0; // °C
let t_src = 100.0; // °C
let max_dist = 0.25;
let center = vec3<f32>(-0.5, 0.5, -0.5);
Expand All @@ -45,8 +45,8 @@ let t_out = part_out * t_env + (1.0 - part_out) * t_src;
return refraction(t_in, t_out, v, normal);"
.to_string(),
Self::MiragePlane => "let t_env = 15.0;
let t_src = 22.0;
Self::MiragePlane => "let t_env = 15.0; // °C
let t_src = 22.0; // °C
let max_dist = 0.01;
let plane_p0 = vec3<f32>(0.0, 0.0, 0.0);
let plane_n = vec3<f32>(0.0, 1.0, 0.0);
Expand Down

0 comments on commit 2bc2846

Please sign in to comment.