Template:KV RenderFields: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Surprise: ''FX Amount'' and ''FX Color'' is apparently not used by the ''Render Mode''.)
(Now that template is completely deprecated, while this one remains in occasional use. Humorous.)
 
(24 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{kv renderfxchoices}}
{{lang|Template:KV RenderFields}}
The following is the result of <code><nowiki>{{KV RenderFields}}</nowiki></code>:


* '''rendermode'''
<onlyinclude>{{minititle|RenderFields}}
: <choices> Used to set a non-standard rendering mode on this entity. See also 'FX Amount' and 'FX Color'.
{{KV Rendermode}}
:{|
{{KV RenderFXChoices}}
! Literal Value || Render Mode || Description
{{KV|Render Amount / Transparency|intn=renderamt|byte|Transparency amount, requires a Render Mode other than '''Normal'''. 0 is invisible, 255 is fully visible.}}
|-
{{KV|Render Color (R G B)|intn=rendercolor|color255|Color tint.}}</onlyinclude>
| 0 || Normal || Default rendering
|-
| 1 || Color || Plain color
|-
| 2 || Texture || Transparency (for things like glass) (''0'' = 100% transparency)
|-
| 3 || Glow || No Z buffer checks -- Fixed size on screen.
|-
| 4 || Solid / Alphatest || (Obsolete) Use [[alphatest]] capabilities in materials instead.
|-
| 5 || Additive || Add this entity's color to what's behind it.
|-
| 7 || Additive Fractional Frame || Blend between animation frames.
|-
| 8 || Alpha Add (Not in FGD.) || {{todo|write description}}
|-
| 9 || World Space Glow || Glow with constant size in world.
|-
| 10 || Dont Render / None || Don't render.
|}


* '''renderamt'''
[[Category:Keyvalue Templates|RenderFields]]
: <integer> ''FX Amount (0 - 255)'' - How opaque the entity will be rendered. (<code>0</code> is fully transparent, while <code>255</code> is fully opaque). Will not work if the ''rendermode'' keyvalue is set to ''Normal''.
 
* '''rendercolor'''
: <[[color255]]> ''FX Color'' - What color the entity will be rendered in (to the degree of the opacity set with ''renderamt'').

Latest revision as of 20:26, 29 April 2025

The following is the result of {{KV RenderFields}}:

RenderFields:


Render Mode (rendermode) <byte choices>
Set a non-standard rendering mode on this entity.
Render Modes
  • 0: Normal
  • 1: Color
  • 2: Texture
  • 3: Glow
  • 4: Solid/Alphatest Obsolete
  • 5: Additive
  • 6: Removed, does nothing Obsolete
  • 7: Additive Fractional Frame
  • 8: Alpha Add
  • 9: World Space Glow
  • 10: Don't Render
Render FX (renderfx) <byte choices>
Various somewhat legacy alpha effects. See render effects.
Render Amount / Transparency (renderamt) <byte>
Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
Render Color (R G B) (rendercolor) <color255>
Color tint.