-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathPointLightReferenceNode.cs
More file actions
94 lines (83 loc) · 2.63 KB
/
PointLightReferenceNode.cs
File metadata and controls
94 lines (83 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if WINAPPSDK
using Microsoft.UI.Composition;
#else
using Windows.UI.Composition;
#endif
namespace CommunityToolkit.WinUI.Animations.Expressions;
/// <summary>
/// Class PointLightReferenceNode. This class cannot be inherited.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public sealed partial class PointLightReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="PointLightReferenceNode"/> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="light">The light.</param>
internal PointLightReferenceNode(string paramName, PointLight? light = null)
: base(paramName, light)
{
}
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>PointLightReferenceNode.</returns>
internal static PointLightReferenceNode CreateTargetReference()
{
var node = new PointLightReferenceNode(null!);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
/// <summary>
/// Gets the constant attenuation.
/// </summary>
/// <value>The constant attenuation.</value>
public ScalarNode ConstantAttenuation
{
get { return ReferenceProperty<ScalarNode>("ConstantAttenuation"); }
}
/// <summary>
/// Gets the linear attenuation.
/// </summary>
/// <value>The linear attenuation.</value>
public ScalarNode LinearAttenuation
{
get { return ReferenceProperty<ScalarNode>("LinearAttenuation"); }
}
/// <summary>
/// Gets the quadratic attenuation.
/// </summary>
/// <value>The quadratic attenuation.</value>
public ScalarNode QuadraticAttentuation
{
get { return ReferenceProperty<ScalarNode>("QuadraticAttentuation"); }
}
/// <summary>
/// Gets the color.
/// </summary>
/// <value>The color.</value>
public ColorNode Color
{
get { return ReferenceProperty<ColorNode>("Color"); }
}
/// <summary>
/// Gets the direction.
/// </summary>
/// <value>The direction.</value>
public Vector3Node Direction
{
get { return ReferenceProperty<Vector3Node>("Direction"); }
}
/// <summary>
/// Gets the offset.
/// </summary>
/// <value>The offset.</value>
public Vector3Node Offset
{
get { return ReferenceProperty<Vector3Node>("Offset"); }
}
}