70 TexelData data_in_front = srt.sample_texel_in_front(v_in.uv);
74 frag_out.color =
float4(srt.opacity);
82 TexelData data = srt.sample_texel(v_in.uv);
85 if (data_in_front.
depth != 1.0f) {
89 if (data.depth < data.xray_depth) {
90 frag_out.color =
float4(srt.opacity);
void gpu_discard_fragment()
TEX_TEMPLATE DataVec textureLod(T, FltCoord, float) RET
SamplerBase< float, 2, false, false, false, true > sampler2DDepth
void fullscreen_vertex(int vertex_id, float4 &out_position)
PipelineGraphic pipeline(vert_main, frag_main)
void frag_main(Resources &srt, const VertOut &v_in, FragOut &frag_out)
void vert_main(const int &vert_id, VertOut &v_out, float4 &position)
const sampler2DDepth xray_depth_tx
TexelData sample_texel(float2 uv)
const sampler2DDepth depth_in_front_tx
const sampler2DDepth depth_tx
TexelData sample_texel_in_front(float2 uv)
const sampler2DDepth xray_depth_in_front_tx