diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-10 21:51:06 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-17 15:09:43 -0800 |
commit | a3881fc5d64cd8e3a5454c622b36bb4e194657d6 (patch) | |
tree | 3997fe419b041b60d69872022be993f40813c805 /src | |
parent | 554b800f24577da5b9566226ac5802a25d2bc8bc (diff) |
Upgrade shaders to GLSL 1.20.
Having to type 1.0 everywhere is really irritating.
Diffstat (limited to 'src')
-rwxr-xr-x | src/phong.frag | 1 | ||||
-rwxr-xr-x | src/phong.vert | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/phong.frag b/src/phong.frag index b532b54..9bd054d 100755 --- a/src/phong.frag +++ b/src/phong.frag @@ -1,3 +1,4 @@ +#version 120 uniform samplerCube sampler; varying vec3 normal_ws; diff --git a/src/phong.vert b/src/phong.vert index 963c57b..7219354 100755 --- a/src/phong.vert +++ b/src/phong.vert @@ -1,3 +1,4 @@ +#version 120 uniform mat4 mvp; // eye -> screen uniform mat4 mv; // world -> eye uniform mat4 m; // object -> world |