Mapdev:specular

From Spring
Revision as of 04:50, 18 December 2012 by Enetheru (talk | contribs) (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Specular

(example specular image) (gif animation)
Example Specular Texture Ingame Result

Specification

mapinfo.lua

The relevant sections of the mapinfo.lua

local mapinfo = {
   resources = {
      ...
      specularTex = "",
      ...
   },
   ...
   lighting = {
      ...
      groundSpecularColor = {0.1, 0.1, 0.1},
      ...
   },
   ...
}

Image File

  • 8 bpp RGBA, any resolution (it will be stretched over the whole terrain).