summaryrefslogtreecommitdiffstats
path: root/src/demos/dualDepthPeeling/shaders/wsum_init_fragment.glsl
blob: 5cccb1425b6f93029f0495ac54d1605e164c3fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//--------------------------------------------------------------------------------------
// Order Independent Transparency with Weighted Sums
//
// 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, color.a);
}