Mapdev:normal

From Spring
Revision as of 07:24, 31 December 2012 by Enetheru (talk | contribs) (create page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Normal Texture

FIXME: description as to why you want to use normal textures.

Caution
Requires clients to have GLSL-spec hardware
Example
FIXME: needs image file FIXME: needs image file
Without Normal Map With Normal Map

Specification

mapinfo.lua

The relevant sections of the mapinfo.lua

local mapinfo = {
   ...
   resources = {
      ...
      detailNormalTex = "normal.png",
      ...
   },
   ...
}

Image File

  • Location: ./maps/
  • 8bpp RGB, any resolution(will be stretched over the terrain).