Template:KV RenderFields: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (standard-table)
No edit summary
Line 1: Line 1:
{{ScrollBox|title=RenderFields|
{{KV RenderFXChoices}}
{{KV RenderFXChoices}}
 
; Render Mode <code><choices></code>
* '''rendermode'''
: Set a non-standard rendering mode on this entity. ''See [[Render Modes]] for details.''
: <choices> Used to set a non-standard rendering mode on this entity. See also 'FX Amount' and 'FX Color'.
; FX Amount (0 - 255) <code><[[int]]></code>
:{| {{standard-table}}
: Intensity of the selected render mode.
! Literal Value || Render Mode || [[Render Modes|Description (Click for more info.)]]
; FX Color (R G B) <code><[[color255]]></code>
|-
: Color used by the selected render mode (if applicable).
| 0 || Normal || Default rendering.
; Disable Receiving Shadows <code><[[bool]]></code>
|-
: Prevents the entity from receiving shadows. {{todo|RTT and/or shadow map?}}
| 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.) || Add alpha.
|-
| 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'''
: <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'').

Revision as of 11:22, 19 July 2009

RenderFields:
Render FX (renderfx) <byte choices>
Various somewhat legacy alpha effects. See render effects.
Render Mode <choices>
Set a non-standard rendering mode on this entity. See Render Modes for details.
FX Amount (0 - 255) <int>
Intensity of the selected render mode.
FX Color (R G B) <color255>
Color used by the selected render mode (if applicable).
Disable Receiving Shadows <bool>
Prevents the entity from receiving shadows.
Todo: RTT and/or shadow map?