Welcome to mirror list, hosted at ThFree Co, Russian Federation.

eevee_hiz_copy_frag.glsl « shaders « eevee « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4abd6d9233b8bcc5b68af5ae0923f434ade53626 (plain)
1
2
3
4
5
6
7
8
9
10
11
/**
 * Copy input depth texture to lower left corner of the destination, filling any padding with
 * clamped texture extrapolation.
 */

void main()
{
  vec2 uv = gl_FragCoord.xy / vec2(textureSize(depth_tx, 0).xy);

  out_depth = texture(depth_tx, uv).r;
}