aboutsummaryrefslogtreecommitdiff
path: root/data/shaders/lighting.vert
diff options
context:
space:
mode:
Diffstat (limited to 'data/shaders/lighting.vert')
-rw-r--r--data/shaders/lighting.vert4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/shaders/lighting.vert b/data/shaders/lighting.vert
index 783978c..aaaee00 100644
--- a/data/shaders/lighting.vert
+++ b/data/shaders/lighting.vert
@@ -17,7 +17,7 @@ varying vec3 light1vc;
varying vec3 col_ambi_diff;
varying vec3 col_emit;
-varying float shininess;
+varying float col_spec; /* Only use one component of this, assume it's some shade of grey */
void main() {
@@ -35,8 +35,8 @@ void main() {
/* Material properties */
col_ambi_diff = gl_Color.rgb;
+ col_spec = gl_FrontMaterial.specular.r;
col_emit = gl_FrontMaterial.emission.rgb;
- shininess = gl_FrontMaterial.shininess;
/* Coordinates */
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;