Blender Git Commit Log

Git Commits -> Revision c838dd9

Revision c838dd9 by Clément Foucault (master)
June 4, 2017, 21:11 (GMT)
Clay Engine: Improve sampling of SSAO

Replace completly random noise by Blue noisen, giving a better aspect.
Also randomize the distance in the sample direction to cover the whole distance even with 1 sample. Using another blue noise for this.
Replace spiral samples (that had tendency to align if the number of samples was near the chosen constant) with Hammersley samples that have good coverage even for low number of samples.
Use a UBO instead of Texture (a bit less latency) making things a tiny bit faster.
Move the noise data to the SceneLayerData, because each render layer can have a different sample count.

Commit Details:

Full Hash: c838dd9de61517c943bacfbb6f54fffc51111fb0
Parent Commit: 288b54b
Lines Changed: +100, -56

3 Modified Paths:

/source/blender/draw/engines/clay/clay_engine.c (+85, -47) (Diff)
/source/blender/draw/engines/clay/shaders/clay_frag.glsl (+4, -1) (Diff)
/source/blender/draw/engines/clay/shaders/ssao_alchemy.glsl (+11, -8) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021