Question: i need help changing my light color. * SetupSceneLights ( ) void SceneManager::SetupSceneLights ( ) { / / Define properties of the first light /

i need help changing my light color.
* SetupSceneLights()
void SceneManager::SetupSceneLights(){
// Define properties of the first light
// Define properties of the second light
// Pass light properties to the shade
m_pShaderManager->setVec3Value("lightSources[0].position", 3.0f,14.0f,0.0f);
m_pShaderManager->setVec3Value("lightSources[0].ambientColor", 0.01f,0.01f,0.01f);
m_pShaderManager->setVec3Value("lightSources[0].diffuseColor", 0.4f,0.4f,0.4f);
m_pShaderManager->setVec3Value("lightSources[0].specularColor", 0.0f,0.0f,0.0f);
m_pShaderManager->setFloatValue("lightSources[0].focalStrength", 32.0f);
m_pShaderManager->setFloatValue("lightSources[0].specularIntensity", 0.05f);
m_pShaderManager->setVec3Value("lightSources[1].position", -3.0f,14.0f,0.0f);
m_pShaderManager->setVec3Value("lightSources[1].ambientColor", 0.01f,0.01f,0.01f);
m_pShaderManager->setVec3Value("lightSources[1].diffuseColor", 0.4f,0.4f,0.4f);
m_pShaderManager->setVec3Value("lightSources[1].specularColor", 0.0f,0.0f,0.0f);
m_pShaderManager->setFloatValue("lightSources[1].focalStrength", 32.0f);
m_pShaderManager->setFloatValue("lightSources[1].specularIntensity", 0.05f);
m_pShaderManager->setVec3Value("lightSources[2].position", 0.6f,5.0f,6.0f);
m_pShaderManager->setVec3Value("lightSources[2].ambientColor", 0.01f,0.01f,0.01f);
m_pShaderManager->setVec3Value("lightSources[2].diffuseColor", 0.3f,0.3f,0.3f);
m_pShaderManager->setVec3Value("lightSources[2].specularColor", 0.3f,0.3f,0.3f);
m_pShaderManager->setFloatValue("lightSources[2].focalStrength", 12.0f);
m_pShaderManager->setFloatValue("lightSources[2].specularIntensity", 0.5f);
// Enable lighting in the shader
m_pShaderManager->setBoolValue("bUseLighting", true);}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!