//-------------------------------------------------------------------------------------- // 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); }