3D Lights and shadows

This commit is contained in:
Marco 2025-06-28 10:05:07 +02:00
commit f3edc2b433
13 changed files with 2409 additions and 2173 deletions

View 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;
}
}

View file

@ -0,0 +1 @@
uid://c8k0yi3krclkl

View 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

View file

@ -0,0 +1 @@
uid://ysbgwxewn4kr