Add a makefile, change imgui with nuklear and add file dropping and loading

This commit is contained in:
Clément Pons
2025-06-23 17:48:17 +02:00
parent e8516827e1
commit 24c9cd2fc7
11 changed files with 265 additions and 105 deletions

View File

@@ -42,8 +42,8 @@ struct FsO { //Fragment shader output
}*/
// Get the texture array index from the UV
/*fn indexFromCoord(uv: vec2f, width: u32, height: u32) -> u32 {
let x: u32 = clamp(floor(uv.x * width), 0, width);
let y: u32 = clamp(floor(uv.y * height), 0, height);
let x: u32 = clamp(floor(uv.x * f32(width)), 0, width);
let y: u32 = clamp(floor(uv.y * f32(height)), 0, height);
return y * width + x;
}*/