summaryrefslogtreecommitdiffstats
path: root/scene/3d/light.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/light.cpp')
-rw-r--r--scene/3d/light.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp
index 2322df6a9e..50ee3482c3 100644
--- a/scene/3d/light.cpp
+++ b/scene/3d/light.cpp
@@ -114,25 +114,25 @@ Color Light::get_shadow_color() const{
}
-AABB Light::get_aabb() const {
+Rect3 Light::get_aabb() const {
if (type==VisualServer::LIGHT_DIRECTIONAL) {
- return AABB( Vector3(-1,-1,-1), Vector3(2, 2, 2 ) );
+ return Rect3( Vector3(-1,-1,-1), Vector3(2, 2, 2 ) );
} else if (type==VisualServer::LIGHT_OMNI) {
- return AABB( Vector3(-1,-1,-1) * param[PARAM_RANGE], Vector3(2, 2, 2 ) * param[PARAM_RANGE]);
+ return Rect3( Vector3(-1,-1,-1) * param[PARAM_RANGE], Vector3(2, 2, 2 ) * param[PARAM_RANGE]);
} else if (type==VisualServer::LIGHT_SPOT) {
float len=param[PARAM_RANGE];
float size=Math::tan(Math::deg2rad(param[PARAM_SPOT_ANGLE]))*len;
- return AABB( Vector3( -size,-size,-len ), Vector3( size*2, size*2, len ) );
+ return Rect3( Vector3( -size,-size,-len ), Vector3( size*2, size*2, len ) );
}
- return AABB();
+ return Rect3();
}
PoolVector<Face3> Light::get_faces(uint32_t p_usage_flags) const {