This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Linkmaterial
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 2: | Line 2: | ||
==Properties== | ==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(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== | ||
Line 69: | Line 50: | ||
=Hints= | =Hints= | ||
Nolighting is almost always a preferred option in a LinkMaterial. | Nolighting is almost always a preferred option in a LinkMaterial. | ||
− | |||
− | |||
− | |||
− |