This shows you the differences between two versions of the page.
| ded:material [2017-03-16 07:05] – skyjake | ded:material [2017-03-16 07:06] (current) – [Syntax] skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Material (DED) ====== | ||
| + | |||
| + | Definitions specify the properties of a material built from one or more textures, for use on the surfaces of world maps (floors, walls etc...). | ||
| + | |||
| + | The focus of this article is to detail how these properties are exposed to mod authors and the specifics of the syntax. | ||
| + | |||
| + | |||
| + | ===== Core concepts ===== | ||
| + | |||
| + | A material is an abstract concept which replaces the id Tech 1 mechanism of directly attributing [[texture]] resources to map surfaces. Please see the [[material]] documentation for details on their use(s) and the mechanics of the abstraction with regard to mod compatibility. | ||
| + | |||
| + | Using materials one is able to layer textures in a // | ||
| + | |||
| + | Materials exist entirely independently from any textures attributed to their [[# | ||
| + | |||
| + | < | ||
| + | **Note for modders**: The term ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Syntax ===== | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | A simple 128x128 Material composed of a single non-animated texture layer: | ||
| + | | ||
| + | Material | ||
| + | { | ||
| + | Id = " | ||
| + | Height = 128; | ||
| + | Width = 128; | ||
| + | Layer { | ||
| + | Stage { Texture = " | ||
| + | } | ||
| + | } | ||