summaryrefslogtreecommitdiffstats
path: root/src/demos/dualDepthPeeling/shaders/dual_peeling_blend.fp
blob: 3ba7cf9c74fc3fe60f2280d095518657de36f8aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//--------------------------------------------------------------------------------------
// Order Independent Transparency with Dual Depth Peeling
//
// Author: Louis Bavoil
// Email: sdkfeedback@nvidia.com
//
// Copyright (c) NVIDIA Corporation. All rights reserved.
//--------------------------------------------------------------------------------------

uniform samplerRECT TempTex;

void main(void)
{
	gl_FragColor = textureRect(TempTex, gl_FragCoord.xy);
	// for occlusion query
	if (gl_FragColor.a == 0) discard;
}