texture map (txtrMp)

key: txtrMp

type: sC(C)*

  1. s : name of property that is used for texture coord (8 characters max)
  2. C: texture data


Description

A texture map is a color chunk. They are used in textured materials. In most case the "vrtxUV" property is used as the indexing property. The texture data will be one of: txtrNm, imgFl, or imgDt.


Examples

nmdTxtr "checker"
   imgFl "checker.ppm" "ppm" end  % a ppm file is stored in "foo.ppm"
end

nmdMtrl "matname"
  lmbrtn
    txtrMp "vrtxUV"
      txtrNm "checker" end
    end
  end
end