feat: add 3d support

This commit is contained in:
2026-09-22 09:36:30 +02:00
parent c2de1bc4bb
commit 66669cd801
7 changed files with 363 additions and 79 deletions
+9
View File
@@ -95,6 +95,15 @@ pub struct Uniforms {
pub de_coloring: u32,
// 0 = classic colors, 1 = shadows
pub shadow: u32,
// 0 = classic colors, 1 = 3D raymarching rendering
pub dimension3: u32,
pub _pad2: [u32; 3],
// camera direction vector
pub camera_direction: [f32; 3],
pub _pad3: [u32; 1],
/// Inverse of the camera's view-projection matrix (column-major), for
/// reconstructing a world-space ray origin per pixel in the raymarcher.
pub camera_inv_proj: [f32; 16],
}
/// Offscreen textures for the two-pass render, recreated whenever the widget's