Template:KV RenderFields: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Now that template is completely deprecated, while this one remains in occasional use. Humorous.)
 
(20 intermediate revisions by 13 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 || [[Render Modes|Description (Click for more info.)]]
{{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 || Obsolete.
|-
| 2 || Texture || Plain opacity.
|-
| 3 || Glow || No Z buffer checks. Fixed size ''on screen''.
|-
| 4 || Solid / Alphatest || Obsolete. (Use [[Render Modes#Solid (Obsolete)|alphatest]] capabilities in materials instead.)
|-
| 5 || Additive || Obsolete. Add this entity's color to what's behind it.
|-
| 7 || Additive Fractional Frame || Obsolete? Blend between animation frames.
|-
| 8 || Alpha Add (Not in FGD.) || {{todo|Write description.}}
|-
| 9 || World Space Glow || No Z buffer checks. Fixed size ''in world'' (as opposed to on screen).
|-
| 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'' or ''Dont Render''.
 
* '''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.