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

eevee_film_resolve_depth_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: 5829991b350cf5f07d232ab391db28810e7347a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

#pragma BLENDER_REQUIRE(eevee_film_lib.glsl)

void main(void)
{
  vec2 uv = uvcoordsvar.xy;

  vec4 color = textureLod(data_tx, uv, 0.0);
  float weight = textureLod(weight_tx, uv, 0.0).r;

  gl_FragDepth = film_data_decode(film, color, weight).r;
}