Merge pull request #11875 from samcake/orange

Fix the spot light direction
This commit is contained in:
Seth Alves 2017-11-23 11:11:31 -08:00 committed by GitHub
commit 56e299c205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ void Light::setOrientation(const glm::quat& orientation) {
}
void Light::setDirection(const Vec3& direction) {
_lightSchemaBuffer.edit().volume.direction = (_transform.getRotation() * direction);
_lightSchemaBuffer.edit().volume.direction = (direction);
}
const Vec3& Light::getDirection() const {