Skip to content

Instantly share code, notes, and snippets.

View ironon's full-sized avatar
🕳️
scheming

iron ironon

🕳️
scheming
View GitHub Profile
@ironon
ironon / old_renderer.rs
Created March 13, 2025 01:48
Basic 3d Render in Rust by David Macpherson
// i was bored on a plane ride and didn't know what to do so i tried my best to make a 3d renderer
// (i had no knowledge of how 3d renders worked, just tried to use my linear algebra skills to derive it out)
use std::{thread, time};
fn paraboloid(x: f32, y: f32) -> f32{
(x*x) + (y*y)
}
fn parabola(t: f32) -> Vec<f32> {