Fix for #1864979 - ambient light may look incorrect in legacy arb shaders
parent
e5f3fe84c1
commit
bb39ee50fe
|
@ -10,7 +10,7 @@ PARAM lightDir0 = program.env[0];
|
|||
PARAM diffuse0 = program.env[2];
|
||||
PARAM lightDir1 = program.env[18];
|
||||
PARAM diffuse1 = program.env[19];
|
||||
PARAM ambient = state.lightmodel.ambient;
|
||||
PARAM ambient = program.env[5];
|
||||
PARAM zeroVec = { 0, 0, 0, 0 };
|
||||
OUTPUT oPos = result.position;
|
||||
OUTPUT oColor = result.color;
|
||||
|
|
|
@ -8,7 +8,7 @@ ATTRIB iTex0 = vertex.texcoord[0];
|
|||
PARAM mvp[4] = { state.matrix.mvp };
|
||||
PARAM lightDir = program.env[0];
|
||||
PARAM diffuse = program.env[2];
|
||||
PARAM ambient = state.lightmodel.ambient;
|
||||
PARAM ambient = program.env[5];
|
||||
PARAM zeroVec = { 0, 0, 0, 0 };
|
||||
OUTPUT oPos = result.position;
|
||||
OUTPUT oColor = result.color;
|
||||
|
|
|
@ -12,7 +12,7 @@ PARAM diffuse0 = program.env[2];
|
|||
PARAM lightDir1 = program.env[18];
|
||||
PARAM diffuse1 = program.env[19];
|
||||
PARAM texOffset = program.env[7];
|
||||
PARAM ambient = state.lightmodel.ambient;
|
||||
PARAM ambient = program.env[5];
|
||||
PARAM zeroVec = { 0, 0, 0, 0 };
|
||||
OUTPUT oPos = result.position;
|
||||
OUTPUT oColor = result.color;
|
||||
|
|
|
@ -10,7 +10,7 @@ PARAM mvp[4] = { state.matrix.mvp };
|
|||
PARAM lightDir = program.env[0];
|
||||
PARAM diffuse = program.env[2];
|
||||
PARAM texOffset = program.env[7];
|
||||
PARAM ambient = state.lightmodel.ambient;
|
||||
PARAM ambient = program.env[5];
|
||||
PARAM zeroVec = { 0, 0, 0, 0 };
|
||||
OUTPUT oPos = result.position;
|
||||
OUTPUT oColor = result.color;
|
||||
|
|
|
@ -10,7 +10,7 @@ PARAM mvp[4] = { state.matrix.mvp };
|
|||
PARAM eyePos = program.env[1];
|
||||
PARAM lightDir = program.env[0];
|
||||
PARAM diffuse = program.env[2];
|
||||
PARAM ambient = state.lightmodel.ambient;
|
||||
PARAM ambient = program.env[5];
|
||||
PARAM texgen_s = program.env[10];
|
||||
PARAM texgen_t = program.env[11];
|
||||
PARAM half = 0.5;
|
||||
|
|
Loading…
Reference in New Issue