This wiki is archived and useful information is being migrated to the main bzflag.org website
Difference between revisions of "GroundMaterial"
From BZFlagWiki
m |
|||
Line 1: | Line 1: | ||
− | GroundMaterial is | + | GroundMaterial is an option for a [[Material]] that allows you to set the ground texture to any local, or hosted texture. |
==Code== | ==Code== | ||
Line 7: | Line 7: | ||
material | material | ||
name GroundMaterial | name GroundMaterial | ||
− | texture ''< | + | texture ''<fileName or URL>'' |
end | end | ||
|} | |} | ||
− | valid parameters | + | valid parameters are: |
<properties> | <properties> | ||
− | name=name used to | + | name=name used to reference the GroundMaterial |
− | texture=set the texture ( | + | texture=set the texture file, either a filename (without .png extension) or URL eg. <nowiki>http://server.name/path/to/file</nowiki> |
</properties> | </properties> |
Revision as of 09:22, 13 February 2008
GroundMaterial is an option for a Material that allows you to set the ground texture to any local, or hosted texture.
Code
To utilize GroundMaterial in your map, first it must be defined:
material name GroundMaterial texture <fileName or URL> end |
valid parameters are:
name | name used to reference the GroundMaterial |
texture | set the texture file, either a filename (without .png extension) or URL eg. http://server.name/path/to/file |