This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing Linkmaterial

Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: Archived wiki

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[Linkmaterial|LinkMaterial]] allows you to set the texture of the teleporter window to anything you would like it to be.  
+
LinkMaterial allows you to set the texture of the teleporter window to anything you would like it to be.  
  
 
==Properties==
 
==Properties==
Valid parameters for a LinkMaterial are:
+
valid parameters for a LinkMaterial are:
{|{{Prettytable}}
+
<properties>
|-
+
name=LinkMaterial
| {{Hl3}} |'''Parameter'''
+
texture=set the texture (must be .png but don't include the extension unless on the Internet)
| {{Hl3}} |'''Description'''
+
addtexture=add a texture (again, no extension is needed)
|-
+
notextures=don't use textures.
| '''name''' || LinkMaterial.
+
notexcolor=don't apply the [[Color(BZW)|color]] to the texture
|-
+
notexalpha=don't use the texture's alpha channel
| '''texture''' || Set the texture (must be .png but don't include the extension unless on the Internet).
+
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.
| '''addtexture''' || Add a texture (again, no extension is needed).
+
ambient=ambient color
|-
+
diffuse=diffuse (main)[[Color(BZW)|color]]
| '''notextures''' || Don't use textures.
+
[[Color(BZW)|color]]=synonym for diffuse
|-
+
specular=specular [[Color(BZW)|color]]
| '''notexcolor''' || Don't apply the [[Color(BZW)|color]] to the texture.
+
emission=emission [[Color(BZW)|color]]
|-
+
shininess=shiny!
| '''notexalpha''' || Don't use the texture's alpha channel.
+
resetmat=restore default values
|-
+
</properties>
| '''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==
Line 69: Line 52:
 
=Hints=
 
=Hints=
 
Nolighting is almost always a preferred option in a LinkMaterial.
 
Nolighting is almost always a preferred option in a LinkMaterial.
 
 
[[Category:Map Making]]
 
[[Category:Map Objects]]
 

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page: