| Line 20: |
Line 20: |
| | * Base texture, which is a texture that can be colored by the player. This should be grayscale most of the time, as the player chosen color will be applied directly by multiplying it, except as noted for the Extra texture. | | * Base texture, which is a texture that can be colored by the player. This should be grayscale most of the time, as the player chosen color will be applied directly by multiplying it, except as noted for the Extra texture. |
| | * Bump texture, which is the normal map. These are usually purple, signifying a direction pointing along the normal of the surface. | | * Bump texture, which is the normal map. These are usually purple, signifying a direction pointing along the normal of the surface. |
| − | * Extra texture. The material uses the 3 color channels of the extra texture to modify the material. | + | * Extra texture. The material uses the 4 color channels of the extra texture to modify the material. |
| | ** The red channel controls occlusion, i.e. how dark a material appears, even in direct light, to simulate crevices. | | ** The red channel controls occlusion, i.e. how dark a material appears, even in direct light, to simulate crevices. |
| | ** The green channel controls smoothness/specularity, where 100% green means very shiny. | | ** The green channel controls smoothness/specularity, where 100% green means very shiny. |
| | ** The blue channel controls color masking, where 100% blue means the player's color will be 100% multiplied with the base texture color and 0% means the material will only use the base texture color. An example of using the blue channel of the Extra texture would be to add gold adornments to a wall that the player can't change the color of. | | ** The blue channel controls color masking, where 100% blue means the player's color will be 100% multiplied with the base texture color and 0% means the material will only use the base texture color. An example of using the blue channel of the Extra texture would be to add gold adornments to a wall that the player can't change the color of. |
| | + | ** As of Alpha 10.10, the alpha channel of the Extra texture controls snow and rain. 100% alpha means no snow or rain, 50% alpha means 100% and about 50% rain snow and 0% alpha means 100% rain. So from 100% alpha to 0% you get nothing -> fully snowed and a little rain -> completely wet. |
| | | | |
| | = XML example = | | = XML example = |