diff options
author | yinsimei | 2017-05-26 05:24:38 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 219044abf9841461043d6e2acf0d5a48a7c7648b (patch) | |
tree | e9d16f9de2317e3596da5a71447e0c823ba3861d /engines/sludge/scale.vert | |
parent | 94439e2ce311734bfe7bb5700a6584b7550ea8f9 (diff) | |
download | scummvm-rg350-219044abf9841461043d6e2acf0d5a48a7c7648b.tar.gz scummvm-rg350-219044abf9841461043d6e2acf0d5a48a7c7648b.tar.bz2 scummvm-rg350-219044abf9841461043d6e2acf0d5a48a7c7648b.zip |
SLUDGE: Add sludge files and make it compile
Diffstat (limited to 'engines/sludge/scale.vert')
-rw-r--r-- | engines/sludge/scale.vert | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/sludge/scale.vert b/engines/sludge/scale.vert new file mode 100644 index 0000000000..ff6aa05660 --- /dev/null +++ b/engines/sludge/scale.vert @@ -0,0 +1,25 @@ +attribute vec4 myVertex; +attribute vec2 myUV0; +attribute vec2 myUV1; + +uniform mat4 myPMVMatrix; +uniform vec4 myColor; +uniform vec4 mySecondaryColor; + +varying vec2 varCoord0; +varying vec2 varCoord1; + +varying vec4 color; +varying vec4 secondaryColor; + +void main() +{ + gl_Position = myPMVMatrix * myVertex; + varCoord0 = myUV0.st; + + // Light + varCoord1 = myUV1.st; + + color = myColor; + secondaryColor = mySecondaryColor; +} |