Material Name (mtrlNm)
key: mtrlNm
type: S
- string: material name.
Description
look up material with this name and substitute it here
Conventions
By convention the name should refer to a named material previously defined
using a named material (nmdMtrl) chunk. This is a material chunk which
can appear anywhere a material chunk is allowed or required.
Examples
nmdMtrl % define a flat gray named material
"matte_gray"
lmbrtn
rgb 0.5 0.5 0.5 end
end
end
msh % a square mesh using matte_gray material
""
mtrlNm "matte_gray" end
vrtxPstn
0.5 -0.5 0.0
0.5 0.5 0.0
-0.5 0.5 0.0
-0.5 -0.5 0.0
end
vrtxUV % used for texture mapping
1.0 0.0
1.0 1.0
0.0 1.0
0.0 0.0
end
qdrltrl
0 1 2 3
end
end