You're breathtaking!
This commit is contained in:
29
Source/Editor/SceneGraph/Actors/DirectionalLightNode.cs
Normal file
29
Source/Editor/SceneGraph/Actors/DirectionalLightNode.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
namespace FlaxEditor.SceneGraph.Actors
|
||||
{
|
||||
/// <summary>
|
||||
/// Scene tree node for <see cref="DirectionalLight"/> actor type.
|
||||
/// </summary>
|
||||
/// <seealso cref="ActorNodeWithIcon" />
|
||||
[HideInEditor]
|
||||
public sealed class DirectionalLightNode : ActorNodeWithIcon
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public DirectionalLightNode(Actor actor)
|
||||
: base(actor)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnDebugDraw(ViewportDebugDrawData data)
|
||||
{
|
||||
base.OnDebugDraw(data);
|
||||
|
||||
var transform = Actor.Transform;
|
||||
DebugDraw.DrawWireArrow(transform.Translation, transform.Orientation, 1.0f, Color.Red, 0.0f, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user