https://github.com/dra1ex/raytracer-js
Ray-caster / Ray-tracer (2D to pseudo 3D)
https://github.com/dra1ex/raytracer-js
ray-caster ray-tracer ray-tracing raycaster raycasting raytracer raytracing-render
Last synced: 3 months ago
JSON representation
Ray-caster / Ray-tracer (2D to pseudo 3D)
- Host: GitHub
- URL: https://github.com/dra1ex/raytracer-js
- Owner: DrA1ex
- Created: 2021-07-12T08:03:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T15:52:19.000Z (3 months ago)
- Last Synced: 2025-02-26T16:44:03.249Z (3 months ago)
- Topics: ray-caster, ray-tracer, ray-tracing, raycaster, raycasting, raytracer, raytracing-render
- Language: JavaScript
- Homepage: https://dra1ex.github.io/raytracer-js/
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raytracer-JS
Simple 2D raytracer/raycaster implementation.## [Demo](https://dra1ex.github.io/raytracer-js/)
**Desktop:** Use _WASD_ to move and _Mouse_ to control camera
**Touch:** Swipe _Left/Right_ to look around; Swipe _Up/Down_ and **hold** to move
## Links
- Ray-casting mode (no reflections): [link](https://dra1ex.github.io/raytracer-js/?reflection_count=0)
- Ray-casting mode (1 reflection): [link](https://dra1ex.github.io/raytracer-js/?reflection_count=1)- Ray-tracing mode (1 reflection): [link](https://dra1ex.github.io/raytracer-js/?accumulate_light=true&reflection_spread=30)
- Ray-tracing mode (4 reflections): [link](https://dra1ex.github.io/raytracer-js/?accumulate_light=true&trace_steps=100&reflection_count=4&reflection_sub_step_count=2&reflection_spread=30&reflection_energy_loss=0.2)
- Ray-tracing mode (8 reflections): [link](https://dra1ex.github.io/raytracer-js/?accumulate_light=true&trace_steps=50&reflection_count=8&reflection_sub_step_count=2&reflection_spread=30&reflection_energy_loss=0.3)## [Debug Mode](https://dra1ex.github.io/raytracer-js/?debug=true)
![]()