Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 837 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 837 Bytes

ray-tracing-fs

Ray Tracing (Path Tracing) in Fragment Shader using React Three Fiber, utilizing ShaderMaterial from Three.js.

Based on Ray Tracing in One Weekend

preview

Dependency

  • Next.js
  • Three.js
  • React Three Fiber

Running Development Server

$ npm i
$ run npm dev

Camera Controls

  • Mouse Wheel : Change the vertical field of view
  • Drag : Change the horizontal position of camera
  • Key 'W' and 'S' : Change the focal length

Shaders

The shader files are in /shaders.

References