Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl
| /** | /** | ||||
| * Shader that downsample depth buffer, | * Shader that downsample depth buffer, | ||||
| * saving min and max value of each texel in the above mipmaps. | * saving min and max value of each texel in the above mipmaps. | ||||
| * Adapted from http://rastergrid.com/blog/2010/10/hierarchical-z-map-based-occlusion-culling/ | * Adapted from http://rastergrid.com/blog/2010/10/hierarchical-z-map-based-occlusion-culling/ | ||||
| **/ | */ | ||||
| #ifdef LAYERED | #ifdef LAYERED | ||||
| uniform sampler2DArray depthBuffer; | uniform sampler2DArray depthBuffer; | ||||
| uniform int depthLayer; | uniform int depthLayer; | ||||
| #else | #else | ||||
| uniform sampler2D depthBuffer; | uniform sampler2D depthBuffer; | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||