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