Skip to content

A simple filter that implements screen space reflections in the (now deprecated?) Blender Game Engine

Notifications You must be signed in to change notification settings

BluePrintRandom/BGE-screen-space-reflections

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple filter that implements screen space reflections in the (now deprecated?) Blender Game Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • GLSL 100.0%