summaryrefslogtreecommitdiffstats
path: root/o3d/compiler/glsl_validator/shaders/spore-view.frag
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/compiler/glsl_validator/shaders/spore-view.frag')
-rw-r--r--o3d/compiler/glsl_validator/shaders/spore-view.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/o3d/compiler/glsl_validator/shaders/spore-view.frag b/o3d/compiler/glsl_validator/shaders/spore-view.frag
new file mode 100644
index 0000000..72717bb
--- /dev/null
+++ b/o3d/compiler/glsl_validator/shaders/spore-view.frag
@@ -0,0 +1,12 @@
+varying vec3 vNormal;
+varying vec3 vViewVec;
+varying vec2 vTexCoord0;
+
+uniform vec4 uColor;
+uniform sampler2D uTexture0;
+
+void main(void) {
+ float v = 0.5 * (1.0 + dot(normalize(vViewVec), vNormal));
+
+ gl_FragColor = texture2D(uTexture0, vTexCoord0.st);
+}