mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-21 00:43:48 +00:00
Custom func_godot entities
This commit is contained in:
parent
8ab7735d17
commit
929d993f99
360 changed files with 4983 additions and 3944 deletions
11
3D/TrenchBroom/EntityScripts/Lights/light_base.gd
Normal file
11
3D/TrenchBroom/EntityScripts/Lights/light_base.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
## Special Light base class that contains static helper functions for LightOmni and LightSpot entities.
|
||||
class_name LightBase
|
||||
extends Light3D
|
||||
|
||||
static func _func_godot_apply_properties(node: Light3D, props: Dictionary) -> void:
|
||||
node.light_energy = props["energy"] as float
|
||||
node.light_indirect_energy = props["indirect_energy"] as float
|
||||
node.shadow_bias = props["shadow_bias"] as float
|
||||
node.shadow_enabled = props["shadows"] as bool
|
||||
node.light_color = props["color"] as Color
|
||||
node.light_bake_mode = Light3D.BAKE_DYNAMIC
|
||||
Loading…
Add table
Add a link
Reference in a new issue