progs/fp: add simple imm, param tests
This commit is contained in:
@@ -176,6 +176,17 @@ static void Init( void )
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
const float Ambient[4] = { 0.0, 1.0, 0.0, 0.0 };
|
||||
const float Diffuse[4] = { 1.0, 0.0, 0.0, 0.0 };
|
||||
const float Specular[4] = { 0.0, 0.0, 1.0, 0.0 };
|
||||
const float Emission[4] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, Ambient);
|
||||
glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, Diffuse);
|
||||
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, Specular);
|
||||
glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, Emission);
|
||||
}
|
||||
|
||||
glClearColor(.1, .3, .5, 0);
|
||||
}
|
||||
|
||||
|
3
progs/fp/mov-imm.txt
Normal file
3
progs/fp/mov-imm.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
!!ARBfp1.0
|
||||
MOV result.color, {0.5, 0.8, 0.3, 1.0};
|
||||
END
|
4
progs/fp/mov-param.txt
Normal file
4
progs/fp/mov-param.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
!!ARBfp1.0
|
||||
PARAM Diffuse = state.material.diffuse;
|
||||
MOV result.color, Diffuse;
|
||||
END
|
Reference in New Issue
Block a user