Template:KV BmNewLightCookieMain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
{{expand|margin_left=2em|title=Examples|
{{expand|margin_left=2em|title=Examples|
<gallery mode=packed heights=290px>
<gallery mode=packed heights=290px>
File:cTEDisabled.jpg |Disabled
File:lightcookie0.jpg |Disabled
File:cTEEnabled.jpg |Enabled
File:lightcookie1.jpg |Enabled
</gallery>
</gallery>
}}
}}
Line 20: Line 20:
{{KV|Texture name for TexLight|intn=texName|string|Determines which texture will use the light source. Lightcookies are using .vtf (not .vmt) texture from files (just like {{ent|env_projectedtexture}}).}}
{{KV|Texture name for TexLight|intn=texName|string|Determines which texture will use the light source. Lightcookies are using .vtf (not .vmt) texture from files (just like {{ent|env_projectedtexture}}).}}
{{KV|.Enable Prop Only Mode|intn=bNegLight|choices|Enable Prop Only Mode.
{{KV|.Enable Prop Only Mode|intn=bNegLight|choices|Enable Prop Only Mode.
{{todo|Document what it does.}}
*0: Disabled
*0: Disabled
*1: Enabled}}
*1: Enabled
{{confirm|Deprecated.}}
}}

Revision as of 05:29, 17 January 2025


Enable Texture Light (bTexLight) <choices>
Sets lightcookie (texture lights) state, enabled or disabled. For NewLight_Point, you need static cubemap texture. For NewLight_Spot, you can use any texture with No Mipmap and No Level Of Detail flags.
  • 0: Disabled
  • 1: Enabled
Examples
Tip.pngTip:Follow these steps to create your own lightcookie texture for point light.
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>
Enable Prop Only Mode.
  • 0: Disabled
  • 1: Enabled
Confirm:Deprecated.