Skip to content

Latest commit

 

History

History

old-watch-rt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Old watch (RT)

View shader on Shadertoy - Published on 2018-08-26

thumbnail

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.

Shaders

Common

Source: Common.glsl

Buffer A

Source: Buffer A.glsl

Inputs

  • iChannel0: Buffer A (linear, clamp, vflipped)
  • iChannel1: texture (mipmap, repeat, vflipped)
  • iChannel2: texture (mipmap, repeat, vflipped)

Buffer B

Source: Buffer B.glsl

Inputs

  • iChannel0: cubemap (mipmap, clamp, vflipped)
  • iChannel1: texture (mipmap, repeat, vflipped)
  • iChannel2: Buffer A (linear, clamp, vflipped)
  • iChannel3: Buffer B (linear, clamp, vflipped)

Image

Source: Image.glsl

Inputs

  • iChannel0: Buffer B (linear, clamp, vflipped)

Links

License

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.