|
|
@ -401,19 +401,19 @@ namespace NL3D
|
|
|
|
int ldc = currentProgram->getUniformIndex( IProgramObject::EUniform( IProgramObject::Light0ColDiff + i ) );
|
|
|
|
int ldc = currentProgram->getUniformIndex( IProgramObject::EUniform( IProgramObject::Light0ColDiff + i ) );
|
|
|
|
if( ldc != -1 )
|
|
|
|
if( ldc != -1 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setUniform4f( ldc, 1.0f, 0.0f, 0.0f, 1.0f );
|
|
|
|
setUniform4f( ldc, 1.0f, 1.0f, 1.0f, 1.0f );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int lsc = currentProgram->getUniformIndex( IProgramObject::EUniform( IProgramObject::Light0ColSpec + i ) );
|
|
|
|
int lsc = currentProgram->getUniformIndex( IProgramObject::EUniform( IProgramObject::Light0ColSpec + i ) );
|
|
|
|
if( lsc != -1 )
|
|
|
|
if( lsc != -1 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setUniform4f( lsc, 0.0f, 1.0f, 0.0f, 1.0f );
|
|
|
|
setUniform4f( lsc, 1.0f, 1.0f, 1.0f, 1.0f );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int lac = currentProgram->getUniformIndex( IProgramObject::EUniform( IProgramObject::Light0ColAmb + i ) );
|
|
|
|
int lac = currentProgram->getUniformIndex( IProgramObject::EUniform( IProgramObject::Light0ColAmb + i ) );
|
|
|
|
if( lac != -1 )
|
|
|
|
if( lac != -1 )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setUniform4f( lac, 0.0f, 0.0f, 0.3f, 1.0f );
|
|
|
|
setUniform4f( lac, 0.1f, 0.1f, 0.1f, 1.0f );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|