Template:KV BmNewLightsSettings: Difference between revisions
Jump to navigation
Jump to search
Bug:Static shadowmaps will be broken after changing outer angle value via newLights_settings entity. Don't change this value on Static and Stationary light type.
Bug:For some reason, changing value here for Stationary light type via newLights_settings will make your shadows look broken. It looks fine for Static and Dynamic light type.
MyGamepedia (talk | contribs) (Undo revision 460640 by MyGamepedia (talk)) Tag: Undo |
MyGamepedia (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
--> | --> | ||
{{KV BmNewLightBaseMain}} | {{KV BmNewLightBaseMain}} | ||
{{KV|OuterAngle|intn=phi|float|Outer angle for spot light.}} | {{KV|OuterAngle|intn=phi|float|Outer angle for spot light. | ||
{{bug|Static shadowmaps will be broken after changing outer angle value via {{ent|newLights_settings}} entity. Don't change this value on Static and Stationary light type.|hidetested=1}} | |||
}} | |||
{{KV|InnerAngle|intn=theta|float|Inner angle value for spot light.}} | {{KV|InnerAngle|intn=theta|float|Inner angle value for spot light.}} | ||
{{KV|AngularFallOff|intn=angularFallOff|float|Angular falloff value. | {{KV|AngularFallOff|intn=angularFallOff|float|Angular falloff value. | ||
{{expand|title=Examples| | |||
{{Note|Results depend on values of OuterAngle and InnerAngle.}} | {{Note|Results depend on values of OuterAngle and InnerAngle.}} | ||
<gallery mode=packed heights=290px> | <gallery mode=packed heights=290px> | ||
File:AngularFallOff1.jpg| thumb | left | 510px | AngularFallOff - 1 (OuterAngle - 60, InnerAngle - 30) | File:AngularFallOff1.jpg| thumb | left | 510px | AngularFallOff - 1 (OuterAngle - 60, InnerAngle - 30) | ||
Line 14: | Line 16: | ||
File:AngularFallOff3.jpg| thumb | left | 510px | AngularFallOff - 60 (OuterAngle - 60, InnerAngle - 30) | File:AngularFallOff3.jpg| thumb | left | 510px | AngularFallOff - 60 (OuterAngle - 60, InnerAngle - 30) | ||
</gallery> | </gallery> | ||
}} | |||
{{bug|hidetested=1|For some reason, changing value here for Stationary light type via {{ent|newLights_settings}} will make your shadows look broken. It looks fine for Static and Dynamic light type. | |||
{{expand|title=Example| | |||
<gallery mode=packed heights=290px> | |||
File:AngularFallOff_bug0.jpg| thumb | left | 510px | Before applying settings. AngularFallOff - 0. | |||
File:AngularFallOff_bug1.jpg| thumb | left | 510px | After applying settings. AngularFallOff - 5. | |||
</gallery> | |||
}} | |||
}} | }} | ||
}} | }} |
Revision as of 04:08, 21 January 2025
- Light Color (LightColor) <color255>
- The RGB color of the light. Colors must be between 0 and 255.
- Light Intensity (Intensity) <float>
- Intensity/brightness of the light. It's RGB * intensity.
Note:With 0 it will make the light disabled, including the effects. Doesn't affect shadows.
- Range (Range) <float>
- Range of the light, or how far the light source can illuminate. Measured in Hammer Units.
Warning:This is one of the parameters that affects performance in the game. Smaller values allow you to process less geometry and save performance.
Important:Range is limited, the limit depends on intensity value. Do not use values bigger than the intensity value allows.
Examples
- Enabled (Enabled) <choices>
- Sets light state on spawn, enabled or disabled.
- 0: Enabled
- 1: Disabled
- Appearance (style) <integer choices>
- Appearance presets.
Lightstyle presets (epilepsy warning) Literal Value Description Sequence Preview 0 Normal m 10 Fluorescent flicker mmamammmmammamamaaamammma 2 Slow, strong pulse abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba 11 Slow pulse, noblack abcdefghijklmnopqrrqponmlkjihgfedcba 5 Gentle pulse jklmnopqrstuvwxyzyxwvutsrqponmlkj 1 Flicker A mmnmmommommnonmmonqnmmo 6 Flicker B nmonqnmomnmomomno 3 Candle A mmmmmaaaaammmmmaaaaaabcdefgabcdefg 7 Candle B mmmaaaabcdefgmmmmaaaammmaamm 8 Candle C mmmaaammmaaammmabcdefaaaammmmabcdefmmmaaaa 4 Fast strobe mamamamamama 9 Slow strobe aaaaaaaazzzzzzzz 12 Underwater light mutation mmnnmmnnnmmnn
Tip:Use new lights instead for lights with custom appearance, because static lightmapped lights reduces performance with this feature (especially near displacements).
Note:Custom light styles are not possible.
- Light Ambient Color (LightColorAmbient) <color255>
- The RGB color of the shadows. Colors must be between 0 and 255.
Examples
- SpecularMultiplier (SpecMultiplier) <float>
- Specular multiplier. Sets intensity of new specular shader from this light source. It's RGB * Intensity * SpecularMultiplier. 0 means disabled.
Examples
falloffConstant (falloffConstant) <integer>!FGD- Deprecated.
Constant value (can work only if old falloff is enabled).
falloffLinear (falloffLinear) <integer>!FGD- Deprecated.
Linear value (can work only if old falloff is enabled).
falloffQuadratic (falloffQuadratic) <integer>!FGD- Deprecated.
Quadratic value (can work only if old falloff is enabled).
- OuterAngle (phi) <float>
- Outer angle for spot light.

- InnerAngle (theta) <float>
- Inner angle value for spot light.
- AngularFallOff (angularFallOff) <float>
- Angular falloff value.
![]() |

|