History

Reflection is working correctly with the PBR property, ship t

samcake committed 10 years ago

Commit 630c61e1 parent 4bec6dd14 files · +70 −23Browse files

Showing the changes to libraries/script-engine/src/SceneScriptingInterface.cpp (1 of 14 files). Show all

Unified · Split

libraries/script-engine/src/SceneScriptingInterface.cpp+5−0
@@ -81,6 +81,11 @@ void SceneScripting::KeyLight::setAmbientSphere(const gpu::SHPointer& sphere) { · 80 unmodified lines
8181 _skyStage->setSunAmbientSphere(sphere);
8282 }
8383
84+void SceneScripting::KeyLight::setAmbientMap(const gpu::TexturePointer& map) {
85+ _skyStage->setSunAmbientMap(map);
86+}
87+
88+
8489 glm::vec3 SceneScripting::KeyLight::getDirection() const {
8590 return _skyStage->getSunDirection();
8691 }