{"repo":"LatentWraith/RT-Game-Engine","free":true,"listed":false,"github":"https://github.com/LatentWraith/RT-Game-Engine","clone":"git clone https://github.com/LatentWraith/RT-Game-Engine.git","description":"A from-scratch game engine written in Rust using WGPU, featuring real-time Ray Tracing and Physically Based Rendering (PBR)","language":"Rust","stars":25,"topics":["game-engine","graphics","pbr","ray-tracing","raytracer","rust","wgpu","wgsl"],"license":"MIT","category":"game-templates","readme_excerpt":"RT Game Engine A from-scratch game engine written in Rust using WGPU , featuring real-time Ray Tracing and Physically Based Rendering (PBR) Tech - Language: Rust - Graphics: wgpu - Shaders: WGSL Ray-Traced Shadows Shadows are generated via a shadow-mask approach : - A per-pixel shadow ray is evaluated to determine if the visible point is occluded relative to the light. - The shadow mask is computed at half resolution for performance. - The half-res mask is bilaterally blurred and upscaled back to full resolution to preserve edges. Soft Shadows - Soft shadows are currently approximated by filtering rather than true multi-ray sampling. Acceleration: - The world is partitioned into spatial chunks. - Each frame, the engine determines which chunks are needed/visible and streams only their child geometry into GPU buffers. - This keeps VRAM usage under control in large scenes and avoids irrelevant geometry. - BVH intersection tests are then used to efficiently rule out unneeded triangles for each ray. Currently, BVH rebuilds are required for object rotation because the AABB bounds change. This can be expensive for dense geometry, making translation-only updates favourable. Example: The first image shows an object casting a shadow, while the second is its respective shadow mask. --- Here is another example showing the full shadow mask, which uses the RGB channels to store reflection data (for Ray Tracing) alongside the shadows: --- Ray Tracing for Reflections Ray Tracing can be used ","default_branch":null,"files":null,"tree":[],"storefront":"/r/LatentWraith","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LatentWraith/RT-Game-Engine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}