Graphics & Media Lab. >> Курсы >> Спец. курс "Доп. главы машинной графики" 1999

Named Material (nmdMtrl)

key: nmdMtrl

type: sC

  1. s: name for new material
  2. C: material chunk

Description

Define a new named material. This material can then be referenced using material name (mtrlNm) chunks.

Conventions

By convention the nmdMtrl chunk should appear before any references to the this material using mtrlNm chunks. The name and material should be entered into a material dictionary for later look up.

Examples


nmdMtrl "matte_dark_blue"
  lmbrtn
    rgb
      0.1 0.1 0.3
    end
  end
end




mdl page
Graphics & Media Lab. >> Библиотека | Курсы | Графикон

Hosted by Graphics & Media Lab
http://graphics.cs.msu.su
lab_logo
mailto: Laboratory