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

vec4 ShadeFragment();

void main(void)
{
	vec4 color = ShadeFragment();
	gl_FragColor = vec4(color.rgb * color.a, 1.0 - color.a);
}