View shader on Shadertoy - Published on 2018-08-26
A simple path tracer is used to render an old watch. The old watch scene is (almost) the same scene as rendered using image based lighting in my shader "Old watch (IBL)":
https://www.shadertoy.com/view/lscBW4
You can find the path tracer in Buffer B. I'm no expert in ray or path tracing so there are probably a lot of errors in this code.
Use your mouse to change the camera viewpoint.
Source: Common.glsl
Source: Buffer A.glsl
- iChannel0: Buffer A (linear, clamp, vflipped)
- iChannel1: texture (mipmap, repeat, vflipped)
- iChannel2: texture (mipmap, repeat, vflipped)
Source: Buffer B.glsl
- iChannel0: cubemap (mipmap, clamp, vflipped)
- iChannel1: texture (mipmap, repeat, vflipped)
- iChannel2: Buffer A (linear, clamp, vflipped)
- iChannel3: Buffer B (linear, clamp, vflipped)
Source: Image.glsl
- iChannel0: Buffer B (linear, clamp, vflipped)
- Old watch (RT) on Shadertoy
- An overview of all my shaders
- My public profile on Shadertoy
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.