blob: 2f0a4ba907f8378dfad8cd5c9915912aefb0a10e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//--------------------------------------------------------------------------------------
// Order Independent Transparency Vertex Shader
//
// Author: Louis Bavoil
// Email: sdkfeedback@nvidia.com
//
// Copyright (c) NVIDIA Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
vec3 ShadeVertex()
{
float diffuse = abs(normalize(gl_NormalMatrix * gl_Normal).z);
return vec3(gl_Vertex.xy, diffuse);
}
|