Difference between revisions of "Linkmaterial"

From BZFlagWiki
Jump to: navigation, search
m (OD: doh... wrong order... like this one... really :P)
m (Properties: properties formatting)
Line 3: Line 3:
 
==Properties==
 
==Properties==
 
valid parameters for a LinkMaterial are:
 
valid parameters for a LinkMaterial are:
<properties>
 
name=LinkMaterial
 
texture=set the texture (must be .png but don't include the extension unless on the Internet)
 
addtexture=add a texture (again, no extension is needed)
 
notextures=don't use textures.
 
notexcolor=don't apply the [[Color(BZW)|color]] to the texture
 
notexalpha=don't use the texture's alpha channel
 
texmat=specify a [[TextureMatrix|texture matrix]]. -1 for no texture matrix. (addtexture must be used before texmat)
 
dyncol=specify a [[DynamicColor|dynamic color]]. -1 for no dynamic color.
 
ambient=ambient color
 
diffuse=diffuse (main)[[Color(BZW)|color]]
 
[[Color(BZW)|color]]=synonym for diffuse
 
specular=specular [[Color(BZW)|color]]
 
emission=emission [[Color(BZW)|color]]
 
shininess=shiny!
 
resetmat=restore default values
 
</properties>
 
  
 +
;name: LinkMaterial
 +
;texture: set the texture (must be .png but don't include the extension unless on the Internet)
 +
;addtexture: add a texture (again, no extension is needed)
 +
;notextures: don't use textures.
 +
;notexcolor: don't apply the [[Color(BZW)|color]] to the texture
 +
;notexalpha: don't use the texture's alpha channel
 +
;texmat: specify a [[TextureMatrix|texture matrix]]. -1 for no texture matrix. (addtexture must be used before texmat)
 +
;dyncol: specify a [[DynamicColor|dynamic color]]. -1 for no dynamic color.
 +
;ambient: ambient color
 +
;diffuse: diffuse (main)[[Color(BZW)|color]]
 +
;[[Color(BZW)|color]]: synonym for diffuse
 +
;specular: specular [[Color(BZW)|color]]
 +
;emission: emission [[Color(BZW)|color]]
 +
;shininess: shiny!
 +
;resetmat: restore default values
  
 
==Code==
 
==Code==

Revision as of 03:36, 28 July 2012

LinkMaterial allows you to set the texture of the teleporter window to anything you would like it to be.

Properties

valid parameters for a LinkMaterial are:

name
LinkMaterial
texture
set the texture (must be .png but don't include the extension unless on the Internet)
addtexture
add a texture (again, no extension is needed)
notextures
don't use textures.
notexcolor
don't apply the color to the texture
notexalpha
don't use the texture's alpha channel
texmat
specify a texture matrix. -1 for no texture matrix. (addtexture must be used before texmat)
dyncol
specify a dynamic color. -1 for no dynamic color.
ambient
ambient color
diffuse
diffuse (main)color
color
synonym for diffuse
specular
specular color
emission
emission color
shininess
shiny!
resetmat
restore default values

Code

#The Generic Teleporter Material
dynamicColor
  name Linkdyncol
  red limits 0 0.25
  red sinusoid 2 0 1
  green limits 0 0.25
  green sinusoid 2 0.666667 1
  blue limits 0 0.25
  blue sinusoid 2 1.33333 1
  alpha limits 0.75 0.75
end
textureMatrix
  name Linktexmat
  shift 0 -0.05 
end
material
  name LinkMaterial
  dyncol Linkdyncol
  diffuse 0 0 0 0.5
  nolighting
  addtexture telelink
  texmat Linktexmat
end

Hints

Nolighting is almost always a preferred option in a LinkMaterial.