summaryrefslogtreecommitdiffstats
path: root/src/demos/dualDepthPeeling/shader/shade.vp
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/dualDepthPeeling/shader/shade.vp')
-rw-r--r--src/demos/dualDepthPeeling/shader/shade.vp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/demos/dualDepthPeeling/shader/shade.vp b/src/demos/dualDepthPeeling/shader/shade.vp
new file mode 100644
index 0000000..2f0a4ba
--- /dev/null
+++ b/src/demos/dualDepthPeeling/shader/shade.vp
@@ -0,0 +1,14 @@
+//--------------------------------------------------------------------------------------
+// Order Independent Transparency Vertex Shader
+//
+// Author: Louis Bavoil
+//
+// Copyright (c) NVIDIA Corporation. All rights reserved.
+//--------------------------------------------------------------------------------------
+
+vec3 ShadeVertex()
+{
+ float diffuse = abs(normalize(gl_NormalMatrix * gl_Normal).z);
+ return vec3(gl_Vertex.xy, diffuse);
+}