aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/data/toon.vp
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2015-03-17 22:38:45 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2015-03-17 22:38:45 +0000
commit356f94fc355f36c16e48555d10c2377dff4b7554 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Gem/examples/data/toon.vp
parent5c694f159b012d1d94bf15bfe580dec52e4fe797 (diff)
Gem 096ed6ef786b7a9d6e11a437ff8526619c89a1fd osx/x86_64
built 'coverity_scan:096ed6ef786b7a9d6e11a437ff8526619c89a1fd' for osx/x86_64
Diffstat (limited to 'Gem/examples/data/toon.vp')
-rw-r--r--Gem/examples/data/toon.vp36
1 files changed, 0 insertions, 36 deletions
diff --git a/Gem/examples/data/toon.vp b/Gem/examples/data/toon.vp
deleted file mode 100644
index 621670b..0000000
--- a/Gem/examples/data/toon.vp
+++ /dev/null
@@ -1,36 +0,0 @@
-!!ARBvp1.0
-
-# Toon Shader by James A. McCombe, Tue Jun 17 2003
-#
-# Implements a very crude toon shader. Basically, a simple dot product between a
-# light direction vector and the vertex normal is performed. The output of this is
-# used to set the texture coordinates to lookup inside a special texture which
-# effectively quantises the light intensity into 3 bands.
-#
-# Parameters:
-# program.env[0] - Light direction vector
-
-ATTRIB vPosition = vertex.position;
-ATTRIB vNormal = vertex.normal;
-
-PARAM lightDirection = program.env[0];
-
-TEMP t0, transVertex;
-
-DP4 result.position.x, state.matrix.mvp.row[0], vPosition;
-DP4 result.position.y, state.matrix.mvp.row[1], vPosition;
-DP4 result.position.z, state.matrix.mvp.row[2], vPosition;
-DP4 result.position.w, state.matrix.mvp.row[3], vPosition;
-
-DP3 t0.x, state.matrix.modelview[0].invtrans.row[0], vNormal;
-DP3 t0.z, state.matrix.modelview[0].invtrans.row[1], vNormal;
-DP3 t0.y, state.matrix.modelview[0].invtrans.row[2], vNormal;
-
-# Dot product of normal and light vector to do tone lookup
-DP3 t0, t0, lightDirection;
-SWZ result.texcoord[0], t0, x,1,1,1;
-
-# Write the primary vertex color
-MOV result.color, vertex.color;
-
-END