7 [
Attribute(defvalue:
"0", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(LightType))]
8 private LightType m_eLightType;
10 [
Attribute(
"0 0.3 0", UIWidgets.EditBox,
"Light offset in local space from the origin of the entity")]
11 private vector m_vLightOffset;
13 [
Attribute(
"1 1 1", UIWidgets.ColorPicker,
"Color of the light")]
14 private vector m_vLightColor;
16 [
Attribute(
"0 0 0", UIWidgets.EditBox,
"Direction of the light cone (useful for LightType.SPOT only).")]
17 private vector m_vLightConeDirection;
19 [
Attribute(
"0", UIWidgets.EditBox,
"Angle of the light cone (useful for LightType.SPOT only).")]
20 private float m_fConeAngle;
22 [
Attribute(
"0", UIWidgets.EditBox,
"Radius of the light effect")]
23 private float m_fRadius;
25 [
Attribute(
"0", UIWidgets.EditBox,
"Clip intensity value of light effect in EV, use negative value to see light even in brighter times.",
params:
"-10 10 0.1")]
26 private float m_fIntensityClipEV;
28 [
Attribute(defvalue:
"0", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(LightLensFlareType))]
29 private LightLensFlareType m_eFlareType;
31 [
Attribute(
"0", UIWidgets.EditBox,
"Radius of the light effect")]
32 private vector m_vFlareOffset;
34 [
Attribute(
"0", UIWidgets.EditBox,
"Scale of lens flare")]
35 private float m_fScale;
37 [
Attribute(defvalue:
"1", uiwidget: UIWidgets.Flags, enums: ParamEnumArray.FromEnum(LightFlags))]
38 private LightFlags m_eLightFlags;
41 vector GetLightOffset()
43 return m_vLightOffset;
47 vector GetLightColor()
53 vector GetLightConeDirection()
55 return m_vLightConeDirection;
59 float GetLightConeAngle()
65 float GetEffectRadius()
71 float GetIntensityClipEV()
73 return m_fIntensityClipEV;
77 vector GetLensFlareOffset()
79 return m_vFlareOffset;
83 float GetLensFlareScale()
89 LightLensFlareType GetFlareType()
95 LightType GetLightType()
101 LightFlags GetLightFlag()
103 return m_eLightFlags;