An open API service indexing awesome lists of open source software.

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)

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

image

## 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)

image