Skip to content

Ray Tracing in Fragment Shader using React Three Fiber

License

Notifications You must be signed in to change notification settings

yukiaware/ray-tracing-fs

Repository files navigation

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

About

Ray Tracing in Fragment Shader using React Three Fiber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published