diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-04 09:45:17 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-04 09:45:36 +0100 |
| commit | 535b63d608948c5a9a85e96d1e8c7e475b00ede0 (patch) | |
| tree | 58e02774a773abe364fbe72682237203d22f45b6 /assets/final/shaders/common_uniforms.wgsl | |
| parent | fdbeddc369d4b55d2098ebdb2e9ef160c0f50368 (diff) | |
handoff(Claude): Stabilize 3D renderer with rotating skybox and two-pass architecture
- Fixed black screen by ensuring clear operations in Pass 2 when Skybox pass is skipped.
- Resolved WebGPU validation errors by synchronizing depth-stencil state.
- Implemented rotating skybox using world-space ray unprojection (inv_view_proj).
- Improved procedural noise generation (multi-octave Value Noise).
- Restored scene integrity by correcting object indexing and removing artifacts.
- Updated documentation (TODO.md, PROJECT_CONTEXT.md).
Diffstat (limited to 'assets/final/shaders/common_uniforms.wgsl')
| -rw-r--r-- | assets/final/shaders/common_uniforms.wgsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/final/shaders/common_uniforms.wgsl b/assets/final/shaders/common_uniforms.wgsl index cefa3b2..4b5cf33 100644 --- a/assets/final/shaders/common_uniforms.wgsl +++ b/assets/final/shaders/common_uniforms.wgsl @@ -1,5 +1,6 @@ struct GlobalUniforms { view_proj: mat4x4<f32>, + inv_view_proj: mat4x4<f32>, camera_pos_time: vec4<f32>, params: vec4<f32>, resolution: vec2<f32>, @@ -12,4 +13,4 @@ struct ObjectData { }; struct ObjectsBuffer { objects: array<ObjectData>, -}; +};
\ No newline at end of file |
