$decaltexture: Difference between revisions
Jump to navigation
Jump to search
Deprecated (talk | contribs) m ($decalblendmode is int, not bool) |
No edit summary |
||
Line 6: | Line 6: | ||
== Parameters and Effects == | == Parameters and Effects == | ||
{{MatParam|$decaltexture|texture|The decal texture.}} | {{MatParam|$decaltexture|texture|The decal texture.}} | ||
{{MatParam|$decalblendmode|int|Set the decal's blend mode. | {{MatParam|$decalblendmode|int|Set the decal's blend mode.}} | ||
* 0 = Alpha Masked | |||
* 1 = Multiplied | |||
* 2 = Modulate (functions like [[DecalModulate]], or Photoshop's Overlay blend mode) | |||
* 3 = Additive | |||
: {{note|If set to 1, {{ent|$phong}} will not function on the material.}} | : {{note|If set to 1, {{ent|$phong}} will not function on the material.}} | ||
{{MatParam|$modeldecalignorez|bool|If enabled, model decals will ignore depth.}} | {{MatParam|$modeldecalignorez|bool|If enabled, model decals will ignore depth.}} | ||
[[Category:List of Shader Parameters|D]] | [[Category:List of Shader Parameters|D]] |
Revision as of 09:12, 8 September 2020
Template:Shaderparam It allows for a second UV channel to be defined for a model, allowing a decal texture to be placed on top of the base material. To use the parameter, the MDL must have been compiled from an FBX file and have a second UV channel defined.
Parameters and Effects
- 0 = Alpha Masked
- 1 = Multiplied
- 2 = Modulate (functions like DecalModulate, or Photoshop's Overlay blend mode)
- 3 = Additive
Note:If set to 1, $phong will not function on the material.