diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-26 23:04:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 23:04:06 +0200 |
commit | f9f24469720a9422a1b08e387c81378d734ace82 (patch) | |
tree | e92f458834fa3935e208ae35d5da8af7d56c0b23 /drivers/gles3/storage | |
parent | 4f60fd04809490ef46e43936bfe7f28a5e97830b (diff) | |
parent | 59e11934d893cbcde70c10f9f861c710b19f3dfa (diff) |
Merge pull request #64367 from Mickeon/rename-var-to-str
Rename `str2var` to `str_to_var` and similar
Diffstat (limited to 'drivers/gles3/storage')
-rw-r--r-- | drivers/gles3/storage/light_storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/storage/light_storage.cpp b/drivers/gles3/storage/light_storage.cpp index 2e4bfdc15b..e2781bfbc0 100644 --- a/drivers/gles3/storage/light_storage.cpp +++ b/drivers/gles3/storage/light_storage.cpp @@ -318,7 +318,7 @@ AABB LightStorage::light_get_aabb(RID p_light) const { switch (light->type) { case RS::LIGHT_SPOT: { float len = light->param[RS::LIGHT_PARAM_RANGE]; - float size = Math::tan(Math::deg2rad(light->param[RS::LIGHT_PARAM_SPOT_ANGLE])) * len; + float size = Math::tan(Math::deg_to_rad(light->param[RS::LIGHT_PARAM_SPOT_ANGLE])) * len; return AABB(Vector3(-size, -size, -len), Vector3(size * 2, size * 2, len)); }; case RS::LIGHT_OMNI: { |