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
mpShaderManagersetVecValuelightSourcesposition", fff;
mpShaderManagersetVecValuelightSourcesambientColor", fff;
mpShaderManagersetVecValuelightSourcesdiffuseColor", fff;
mpShaderManagersetVecValuelightSourcesspecularColor", fff;
mpShaderManagersetFloatValuelightSourcesfocalStrength", f;
mpShaderManagersetFloatValuelightSourcesspecularIntensity", f;
mpShaderManagersetVecValuelightSourcesposition", fff;
mpShaderManagersetVecValuelightSourcesambientColor", fff;
mpShaderManagersetVecValuelightSourcesdiffuseColor", fff;
mpShaderManagersetVecValuelightSourcesspecularColor", fff;
mpShaderManagersetFloatValuelightSourcesfocalStrength", f;
mpShaderManagersetFloatValuelightSourcesspecularIntensity", f;
mpShaderManagersetVecValuelightSourcesposition", fff;
mpShaderManagersetVecValuelightSourcesambientColor", fff;
mpShaderManagersetVecValuelightSourcesdiffuseColor", fff;
mpShaderManagersetVecValuelightSourcesspecularColor", fff;
mpShaderManagersetFloatValuelightSourcesfocalStrength", f;
mpShaderManagersetFloatValuelightSourcesspecularIntensity", f;
Enable lighting in the shader
mpShaderManagersetBoolValuebUseLighting true;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
