mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 06:15:54 +00:00
3D Lights and shadows
This commit is contained in:
parent
b17ef45678
commit
f3edc2b433
13 changed files with 2409 additions and 2173 deletions
15
3D/TrenchBroom/EntityScripts/Lights/SpecialSubSpotLight.cs
Normal file
15
3D/TrenchBroom/EntityScripts/Lights/SpecialSubSpotLight.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno._3D.TrenchBroom.EntityScripts.Lights;
|
||||
|
||||
[Tool]
|
||||
public partial class SpecialSubSpotLight : SpotLight3D
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
var parent = GetParent<OmniLight3D>();
|
||||
this.SpotRange = parent.OmniRange;
|
||||
this.SpotAttenuation = parent.OmniAttenuation;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://c8k0yi3krclkl
|
||||
7
3D/TrenchBroom/EntityScripts/Lights/light_special.gd
Normal file
7
3D/TrenchBroom/EntityScripts/Lights/light_special.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@tool
|
||||
class_name LightSpecial
|
||||
extends OmniLight3D
|
||||
|
||||
func _func_godot_apply_properties(props: Dictionary) -> void:
|
||||
#LightBase._func_godot_apply_properties(self, props)
|
||||
omni_range = (props["range"] as float) * TbManager.INVERSE_SCALE
|
||||
1
3D/TrenchBroom/EntityScripts/Lights/light_special.gd.uid
Normal file
1
3D/TrenchBroom/EntityScripts/Lights/light_special.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://ysbgwxewn4kr
|
||||
Loading…
Add table
Add a link
Reference in a new issue