Skip to content

Commit

Permalink
Implement PBR Shaders (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Apr 16, 2022
1 parent 5cbd505 commit e2caa03
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,24 +558,6 @@ bool ERS_CLASS_PythonInterpreterIntegration::ExecuteSpotLightScript(std::string
ErrorMessageString->push_back("SpotLight Diffuse CAST_ERROR");
}

try {
SpecularR = SpotLightModule.attr("SpotLightSpecularR").cast<double>();
SpecularG = SpotLightModule.attr("SpotLightSpecularG").cast<double>();
SpecularB = SpotLightModule.attr("SpotLightSpecularB").cast<double>();
SpotLight->Specular = glm::vec3(SpecularR, SpecularG, SpecularB);
} catch (pybind11::cast_error const&) {
ErrorMessageString->push_back("SpotLight Specular CAST_ERROR");
}

try {
AmbientR = SpotLightModule.attr("SpotLightAmbientR").cast<double>();
AmbientG = SpotLightModule.attr("SpotLightAmbientG").cast<double>();
AmbientB = SpotLightModule.attr("SpotLightAmbientB").cast<double>();
SpotLight->Ambient = glm::vec3(AmbientR, AmbientG, AmbientB);
} catch (pybind11::cast_error const&) {
ErrorMessageString->push_back("SpotLight Ambient CAST_ERROR");
}

try {
SpotLight->RolloffConstant = SpotLightModule.attr("SpotLightRolloffConstant").cast<float>();
SpotLight->RolloffLinear = SpotLightModule.attr("SpotLightRolloffLinear").cast<float>();
Expand Down

0 comments on commit e2caa03

Please sign in to comment.