change some comments

main
annieversary 2021-09-30 22:06:58 +02:00
parent 57044bd9cd
commit 5e0d3b3ca0
1 changed files with 1 additions and 8 deletions

View File

@ -1,7 +1,4 @@
use nannou::prelude::*; use nannou::prelude::*;
// use utils::*;
// from https://fabiensanglard.net/doom_fire_psx/
fn main() { fn main() {
nannou::app(model) nannou::app(model)
@ -28,14 +25,10 @@ fn shader(i: usize, j: usize, w: usize, h: usize, t: f32) -> Rgb {
let y = j as f32 / h as f32; let y = j as f32 / h as f32;
let pos = vec2(x, y); let pos = vec2(x, y);
// srgb(pos.x, pos.y, 0.0)
// let a = (pos - vec2(0.5, 0.5)).length();
// srgb(a, a, a)
creation(pos, t) creation(pos, t)
} }
// https://www.shadertoy.com/view/XsXXDn
fn creation(pos: Vec2, t: f32) -> Rgb { fn creation(pos: Vec2, t: f32) -> Rgb {
let mut l = t; let mut l = t;
let mut z = t; let mut z = t;