diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-11 00:52:51 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-11 00:52:51 -0300 |
commit | bc26f905817945300d397696330d1ab04a1af33c (patch) | |
tree | d06338399c8ea410042f6631fb3db3efcc100b05 /scene/3d/light.cpp | |
parent | 710692278d1353aad08bc7bceb655afc1d6c950c (diff) | |
download | redot-engine-bc26f905817945300d397696330d1ab04a1af33c.tar.gz |
Type renames:
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
Diffstat (limited to 'scene/3d/light.cpp')
-rw-r--r-- | scene/3d/light.cpp | 10 |
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 { |