diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-27 16:18:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 16:18:35 +0200 |
commit | 281d0bd59e1b8a8ee2032df97f28051d5668b5da (patch) | |
tree | 44a2010859522d45738c5bb657b1eb54a915186a /modules/gltf/gltf_light.h | |
parent | 41228343fed38537d5a58f1222012512a5e7758c (diff) | |
parent | f3e76a53975ca86725ed8d82b2650046c2702c24 (diff) |
Merge pull request #53109 from aaronfranke/fix-gltf-light
Diffstat (limited to 'modules/gltf/gltf_light.h')
-rw-r--r-- | modules/gltf/gltf_light.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gltf/gltf_light.h b/modules/gltf/gltf_light.h index 079fb18151..62a20d2f16 100644 --- a/modules/gltf/gltf_light.h +++ b/modules/gltf/gltf_light.h @@ -42,12 +42,12 @@ protected: static void _bind_methods(); private: - Color color; - float intensity = 0.0f; + Color color = Color(1.0f, 1.0f, 1.0f); + float intensity = 1.0f; String light_type; - float range = 0.0f; + float range = INFINITY; float inner_cone_angle = 0.0f; - float outer_cone_angle = 0.0f; + float outer_cone_angle = Math_TAU / 8.0f; public: Color get_color(); |