list of base's material proxies
This commit is contained in:
parent
381ca25b6e
commit
08a2314540
@ -9,6 +9,7 @@
|
|||||||
- [Attachment Template](lua/tfa/documentation/tfa_attachment_template.lua) - file name is the ID of attachment that goes into `SWEP.Attachments` table, place to `<your addon>/lua/tfa/att` folder
|
- [Attachment Template](lua/tfa/documentation/tfa_attachment_template.lua) - file name is the ID of attachment that goes into `SWEP.Attachments` table, place to `<your addon>/lua/tfa/att` folder
|
||||||
- [Animations Reference](lua/tfa/documentation/tfa_anims_template.lua) - list of animations that are used by the base
|
- [Animations Reference](lua/tfa/documentation/tfa_anims_template.lua) - list of animations that are used by the base
|
||||||
- [Custom Hooks](lua/tfa/documentation/tfa_hooks_custom.lua) - list of [hooks](https://wiki.facepunch.com/gmod/hook.Add) added by the base for the addons intercompatibility
|
- [Custom Hooks](lua/tfa/documentation/tfa_hooks_custom.lua) - list of [hooks](https://wiki.facepunch.com/gmod/hook.Add) added by the base for the addons intercompatibility
|
||||||
|
- [Material Proxies](lua/tfa/documentation/tfa_matproxies.lua) - list of [material proxies](https://developer.valvesoftware.com/wiki/Material_proxies) added by the base
|
||||||
- [Developer FAQ](faq/FOR_DEVELOPERS.md) - Common code stuff relevant to developing TFA Base addons
|
- [Developer FAQ](faq/FOR_DEVELOPERS.md) - Common code stuff relevant to developing TFA Base addons
|
||||||
|
|
||||||
## Paths that are loaded by the base automatically (in load order):
|
## Paths that are loaded by the base automatically (in load order):
|
||||||
|
80
lua/tfa/documentation/tfa_matproxies.lua
Normal file
80
lua/tfa/documentation/tfa_matproxies.lua
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
-- Name: PlayerWeaponColorStatic
|
||||||
|
-- Description: Static/direct variation of PlayerWeaponColor, without any flickering.
|
||||||
|
-- Parameters:
|
||||||
|
-- 1. resultvar - Result variable for the color (such as $color2)
|
||||||
|
-- VMT Example:
|
||||||
|
--[[
|
||||||
|
Proxies
|
||||||
|
{
|
||||||
|
PlayerWeaponColorStatic
|
||||||
|
{
|
||||||
|
resultvar $color2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]]
|
||||||
|
|
||||||
|
|
||||||
|
-- Name: TFALaserColor
|
||||||
|
-- Description:
|
||||||
|
-- Parameters:
|
||||||
|
-- 1. resultvar - Result variable for the color (such as $color2)
|
||||||
|
-- VMT Example:
|
||||||
|
--[[
|
||||||
|
Proxies
|
||||||
|
{
|
||||||
|
TFALaserColor
|
||||||
|
{
|
||||||
|
resultVar $color2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]]
|
||||||
|
|
||||||
|
|
||||||
|
-- Name: TFAReticuleColor
|
||||||
|
-- Description:
|
||||||
|
-- Parameters:
|
||||||
|
-- 1. resultvar - Result variable for the color (such as $color2)
|
||||||
|
-- VMT Example:
|
||||||
|
--[[
|
||||||
|
Proxies
|
||||||
|
{
|
||||||
|
TFAReticuleColor
|
||||||
|
{
|
||||||
|
resultVar $color2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]]
|
||||||
|
|
||||||
|
|
||||||
|
-- Name: TFA_RTScope
|
||||||
|
-- Description: Replaces $basetexture with render target texture of 3D scopes
|
||||||
|
-- VMT Example:
|
||||||
|
--[[
|
||||||
|
Proxies
|
||||||
|
{
|
||||||
|
TFA_RTScope
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]]
|
||||||
|
|
||||||
|
|
||||||
|
-- Name: TFA_CubemapTint
|
||||||
|
-- Description: Tints
|
||||||
|
-- Parameters:
|
||||||
|
-- 1. resultvar - Variable for resulting envmap tint ($envmaptint)
|
||||||
|
-- 2. multiplier - Variable for base tint multiplier (a vector)
|
||||||
|
-- VMT Example:
|
||||||
|
--[[
|
||||||
|
$envmapmultiplier "[1 1 1]" // Lighting will be multiplied by this value
|
||||||
|
|
||||||
|
Proxies
|
||||||
|
{
|
||||||
|
TFA_CubemapTint
|
||||||
|
{
|
||||||
|
resultvar $envmaptint // Write final output to $envmaptint
|
||||||
|
multiplier $envmapmultiplier // Use our value for default envmap tint
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user