mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 05:53:46 +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;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue