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

depth_2d_update_int32_frag.glsl « kernels « metal « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 421c25a2e5c96b859b5bfc448ddb5d8a5114ce85 (plain)
1
2
3
4
5
6
7

void main()
{
  uint val = textureLod(source_data, texCoord_interp, mip).r;
  uint depth = (val) & (0xFFFFFFFFu);
  gl_FragDepth = float(depth) / float(0xFFFFFFFFu);
}