From 535b63d608948c5a9a85e96d1e8c7e475b00ede0 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 4 Feb 2026 09:45:17 +0100 Subject: 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). --- assets/final/shaders/common_uniforms.wgsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'assets/final/shaders/common_uniforms.wgsl') 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, + inv_view_proj: mat4x4, camera_pos_time: vec4, params: vec4, resolution: vec2, @@ -12,4 +13,4 @@ struct ObjectData { }; struct ObjectsBuffer { objects: array, -}; +}; \ No newline at end of file -- cgit v1.2.3