Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.54 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.54 KB

BGE-screen-space-reflections

blenderartists thread

This is a 2d filter that does screen-space reflections. Ray to Depth-Buffer intersections are found through a modified raymarch.

The filter expects three properties to be added to the object containing the filter actuator:

Float - roughness (roughness of the reflections) Float - reflectance (reflectance at normal incidence) Integer - samples (amount of rays used per pixel) There are also some settings within the filter that should be modified to match your camera setup. They are around line 20.

NOTE: this filter seems broken when used with an fov other than 90 degrees.

Screenshots

glossy reflections with high sample count 32 spp glossy reflections (this is the maximum sample count the filter supports, but it's not like you would be able to run it this high on almost any PC anyways)

glossy reflections 4 spp glossy reflections

sharp reflections 4 spp sharp reflections

glossy reflections only 4 spp glossy reflections (reflections only)

sharp reflections only 4 spp sharp reflections (reflections only)

Credits

This filter uses (or used at some point) the functions used for reconstruction of screen space made by blenderartists.org user martinsh for his deferred render filter, as well as a modification of one of the functions made by blenderartists.org user TheLumCoin.