AtlasedTexture: Difference between revisions

From Spring
Jump to navigationJump to search
Yeha (talk | contribs)
No edit summary
 
Flozi (talk | contribs)
m resources.tdf --> resources.lua (unify wanted pages)
Line 1: Line 1:
AtlasedTexture is an alias to a texture. This means the alias must be defined somewhere and pointing to to a real texture. For AtlasedTextures used in projectiles (like those spawned by explosiongenerator) they need to be defined in [[resources.tdf]] under the [projectiletextures].
AtlasedTexture is an alias to a texture. This means the alias must be defined somewhere and pointing to to a real texture. For AtlasedTextures used in projectiles (like those spawned by explosiongenerator) they need to be defined in [[resources.lua]] under the [projectiletextures].


A line defining a texture alias in [[resources.tdf]] looks like this:<br>
A line defining a texture alias in [[resources.lua]] looks like this:<br>
     <code>alias=real_image.tga;</code>
     <code>alias = "real_image.tga",</code>
Most spring suported image format can be used in AtlasedTextures, but not compressed dds.
Most spring suported image format can be used in AtlasedTextures, but not compressed dds.

Revision as of 14:00, 12 July 2011

AtlasedTexture is an alias to a texture. This means the alias must be defined somewhere and pointing to to a real texture. For AtlasedTextures used in projectiles (like those spawned by explosiongenerator) they need to be defined in resources.lua under the [projectiletextures].

A line defining a texture alias in resources.lua looks like this:

   alias = "real_image.tga",

Most spring suported image format can be used in AtlasedTextures, but not compressed dds.