blob: e50aeb07d756f81c546042eb171f702828e93b17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//--------------------------------------------------------------------------------------
// Order Independent Transparency with Average Color
//
// Author: Louis Bavoil
// Email: sdkfeedback@nvidia.com
//
// Copyright (c) NVIDIA Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#extension ARB_draw_buffers : require
vec4 ShadeFragment();
void main(void)
{
vec4 color = ShadeFragment();
gl_FragData[0] = vec4(color.rgb * color.a, color.a);
gl_FragData[1] = vec4(1.0);
}
|