fragment_hidden.tpl 216 Bytes
Newer Older
1
// hiddenline shader for tri meshes
2

3
in float outGeometryHidden;
4

5
uniform vec4 bkColor;
6 7 8 9 10

void main()
{
  SG_FRAGMENT_BEGIN

11 12
  sg_cColor.xyz = mix(sg_cColor.xyz, bkColor.xyz, outGeometryHidden);
  
13 14
  SG_FRAGMENT_END
}