Use an environment parameter for light color instead of the GL light state.

ver1_5_1
Chris Laurel 2003-02-18 07:36:32 +00:00
parent 06893625a9
commit 0237e09c5f
1 changed files with 2 additions and 3 deletions

View File

@ -10,11 +10,10 @@ ATTRIB iTex1 = vertex.texcoord[1];
PARAM mvp[4] = { state.matrix.mvp };
PARAM lightDir = program.env[0];
PARAM eyePos = program.env[1];
PARAM diffuse = program.env[2];
PARAM specExp = program.env[4];
PARAM diffuse = state.lightprod[0].diffuse;
PARAM specular = program.env[3];
PARAM ambient = state.lightmodel.ambient;
PARAM haze = program.env[6];
PARAM ambient = program.env[5];
PARAM zero = 0;
PARAM one = 1;
OUTPUT oPos = result.position;