Template:KV BmNewLightCookieSpot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{KV|ShadowFOV|intn=ShadowFOV|float|Fov used by shadowmap camera for this light. Keep it 0 to use Outer angle as the fov. {{bug|hidetested=1|If value lower than OuterAngle value, the lights will have visual issues.}} {{expand|title=The bug example| <gallery mode=packed heights=420px> File:ShadowFOVBUG.jpg| frame | ShadowFOV value is 70 here, but OuterAngle value is 140. </gallery> }} }} {{KV BmNewLightCookieMain}} {{KV|TexCookieFramesX|intn=TexCookieFramesX|integer|Numbe...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
Purpose:
We are using this template for one or multiple pages related to Black Mesa new light entities. These templates allows you to use the same text for entities that have many identical properties, without having to make the same changes for several pages separately. This template is also may used in some other templates.
-->
{{KV|ShadowFOV|intn=ShadowFOV|float|Fov used by shadowmap camera for this light. Keep it 0 to use Outer angle as the fov.
{{KV|ShadowFOV|intn=ShadowFOV|float|Fov used by shadowmap camera for this light. Keep it 0 to use Outer angle as the fov.
{{bug|hidetested=1|If value lower than OuterAngle value, the lights will have visual issues.}}
{{bug|hidetested=1|If value lower than OuterAngle value, the lights will have visual issues.
{{expand|title=The bug example|
{{expand|title=Example|
<gallery mode=packed heights=420px>
<gallery mode=packed heights=420px>
File:ShadowFOVBUG.jpg| frame | ShadowFOV value is 70 here, but OuterAngle value is 140.
File:ShadowFOVBUG.jpg| frame | ShadowFOV value is 70 here, but OuterAngle value is 140.
</gallery>
</gallery>
}}
}}
}}
}}}}
{{KV BmNewLightCookieMain}}
{{KV BmNewLightCookieMain}}
{{KV|TexCookieFramesX|intn=TexCookieFramesX|integer|Number of frames in 1 row of atlas.
{{KV|TexCookieFramesX|intn=TexCookieFramesX|integer|Number of frames in 1 row of atlas.}}
{{Note|If value lower than 1 - you'll get message in the developer console:
{{KV|TexCookieFramesY|intn=TexCookieFramesY|integer|Number of frames in 1 column of atlas.}}
 
{{KV|TexCookieFps|intn=TexCookieFps|float|The amount of time it takes to move to the next atlas frame.}}
<code>TexCookieFramesX for LightSpot - class C_NewLightSpot CookieName - TEXTURENAME.vtf is 0. Are you sure this light is using texcookie? If yes then set this property to at least 1. </code>
}}
}}
{{KV|TexCookieFramesY|intn=TexCookieFramesY|integer|Number of frames in 1 column of atlas. Also sets scale for texture, with 2 and higher it allows TexCookieFps to animate texture.
{{Note|If value lower than 1 - you'll get message in the developer console:
 
<code>TexCookieFramesY for LightSpot - class C_NewLightSpot CookieName - TEXTURENAME.vtf is 0. Are you sure this light is using texcookie? If yes then set this property to at least 1. </code>
}}
{{expand|title=Examples|
<gallery mode=packed heights=290px>
File:TexCookieFramesY1.jpg| thumb | left | 510px | TexCookieFramesY - 1
File:TexCookieFramesY2.jpg| thumb | left | 510px | TexCookieFramesY - 2
File:TexCookieFramesY3.jpg| thumb | left | 510px | TexCookieFramesY - 3
</gallery>
}}
}}
{{KV|TexCookieFps|intn=TexCookieFps|float|Frame rate for animation. This entity divides texture into several parts (their count is indicated in TexCookieFramesY) and changes them in a specific sequence.}}
{{KV|Tex Cookie Scroll Mode|intn=bTexCookieScrollMode|choices|Sets texture scrolling function state, enabled or disabled. ScrollSpeedU and ScrollSpeedV sets scrolling speed and direction.
{{KV|Tex Cookie Scroll Mode|intn=bTexCookieScrollMode|choices|Sets texture scrolling function state, enabled or disabled. ScrollSpeedU and ScrollSpeedV sets scrolling speed and direction.
*0: Disabled
*0: Disabled
*1: Enabled}}
*1: Enabled}}
{{KV|ScrollSpeedU|intn=fScrollSpeedU|float|Scrolling speed along Y axis.
{{KV|ScrollSpeedU|intn=fScrollSpeedU|float|Scrolling speed along Y axis.}}
{{expand|title=Examples|
<gallery mode=packed heights=500px>
File:ScrollSpeedU2.gif| thumb | left | 510px | ScrollSpeedU - 2
File:ScrollSpeedU-1.gif| thumb | left | 510px | ScrollSpeedU - -1
</gallery>
}}
}}
{{KV|ScrollSpeedV|intn=fScrollSpeedV|float|Scrolling speed along X axis.}}
{{KV|ScrollSpeedV|intn=fScrollSpeedV|float|Scrolling speed along X axis.}}
{{expand|title=Examples|
<gallery mode=packed heights=500px>
File:ScrollSpeedV-1.gif| thumb | left | 510px | ScrollSpeedV - -1
File:ScrollSpeedV2.gif| thumb | left | 510px | ScrollSpeedV - 2
</gallery>
}}

Latest revision as of 09:22, 23 May 2025


ShadowFOV (ShadowFOV) <float>
Fov used by shadowmap camera for this light. Keep it 0 to use Outer angle as the fov.
Icon-Bug.pngBug:If value lower than OuterAngle value, the lights will have visual issues.
Example


Enable Texture Light (bTexLight) <choices>
Sets lightcookie (texture lights) state, enabled or disabled.
  • 0: Disabled
  • 1: Enabled
Examples
Warning.pngWarning:This is one of the most expensive features, use wisely.
Texture name for TexLight (texName) <string>
Determines which texture will use the light source. Lightcookies are using .vtf (not .vmt) texture from files (just like env_projectedtexture).
.Enable Prop Only Mode (bNegLight) <choices> Obsolete
Deprecated.
Sets prop only mode, which supposed to disable shadows for world geometry. Doesn't work. The same effect can be achieved with shadow pass settings.
  • 0: Disabled
  • 1: Enabled
TexCookieFramesX (TexCookieFramesX) <integer>
Number of frames in 1 row of atlas.
TexCookieFramesY (TexCookieFramesY) <integer>
Number of frames in 1 column of atlas.
TexCookieFps (TexCookieFps) <float>
The amount of time it takes to move to the next atlas frame.
Tex Cookie Scroll Mode (bTexCookieScrollMode) <choices>
Sets texture scrolling function state, enabled or disabled. ScrollSpeedU and ScrollSpeedV sets scrolling speed and direction.
  • 0: Disabled
  • 1: Enabled
ScrollSpeedU (fScrollSpeedU) <float>
Scrolling speed along Y axis.
ScrollSpeedV (fScrollSpeedV) <float>
Scrolling speed along X axis.