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

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


void main()
{
  uint val = textureLod(source_data, texCoord_interp, mip).r;
  uint stencil = (val >> 24) & 0xFFu;
  uint depth = (val)&0xFFFFFFu;
  gl_FragDepth = float(depth) / float(0xFFFFFFu);
}