light_surface
Last edited 1 year ago2023-01-19 09:06:33 UTC
- Wiki
- View Page
-
You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date.
Click here to see the current revision of this page.
Introduced by Vluzacn's Compile Tools, this point entity functions as a single-texture specific
lights.rad with much more advanced control of the texture light's appearance.
Entity Properties
Class Info
- Texture name (_tex) - Name of the texture to emit light from.
- Filter max range (_frange) - Only apply to faces whose center is within this radius.
- Filter max dist to plane (_fdist) - Only apply to surface whose complete face is within this radius.
- Filter entity classname (_fclass) - Only apply to surfaces belonging to entities of this classname.
- Filter entity name (_fname) - Only apply to surfaces belonging to entities whose targetname is this.
- Texture brightness (_light) - Brightness of the light emitted. Similar to how it works for light.
- Color(replace texture color) (_texcolor) - Normally uses the average color of the texture for the emitted light. Use this to override that.
- Inner(bright) angle(90default) (_cone) - Similar to light_spot's Inner Radius. Sets the fully bright part of the light cone.
- Outer(fading) angle(90default) (_cone2) - Similar to light_spot's Outer Radius. Sets the angle where the light cone has faded to completely dark.
- Adjust emit scale(1.0default) (_scale) - Functions like -scale option on the RAD compiler(?). Higher values results in brighter light and vice versa.
- Grid size of sampling (_chop) - Has limited functionality. Sets the sampling grid size for scaled textures but cannot affect lightmap grid.
- Dark gap in front of texlight (_texlightgap) - How far to move the light from the emitting surface. Can help prevent light bleeding through thin lamp brushes and such.
- Fast (_fast) - Same as using the
-fast
option on the RAD compiler(?). - Classname in game (convertto) - Used by the compiler to set the entity's in-game classname. You will most likely not need to set this.
- Name (targetname) - Toggles the emitted light on or off.
- Appearance (no name allowed) (style) - Light appearance. Values:
- 0 = Normal
- 1 = Flicker A
- 2 = Slow strong pulse
- 3 = Candle A
- 4 = Fast strobe
- 5 = Gentle pulse
- 6 = Flicker B
- 7 = Candle B
- 8 = Candle C
- 9 = Slow strobe
- 10 = Fluorescent flicker
- 11 = Slow pulse, no black
- Custom Appearance (pattern) - Sets a custom pattern for the light style using a string of letters from a to z, from brightest to darkest respectively, up to 64 characters.
Flags
Notes
- This is the only type of texture lighting that can be triggered on or off, and that supports light styles.
- Unlike lights.rad or info_texlight type texture lighting, this does not scale with texture size and the brightness instead behaves more like that of light entities.
-
Erty
–
Original author
Comments
You must log in to post a comment.
You can login or register a new account.