Class ObjMaterial
java.lang.Object
eu.svjatoslav.aukio.e3d.renderer.raster.shapes.composite.obj.ObjMaterial
A single material from a Wavefront MTL library.
Only the subset of MTL attributes relevant to the rasterizer is
captured: diffuse color (Kd) and opacity (d, or
Tr transparency) — combined into the engine's Color
(alpha 255 = opaque, lower = translucent). Specular/ambient/texture-map
attributes (Ks, Ka, Ns, illum,
map_*) are parsed past and ignored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjMaterialFallback material for faces whoseusemtlis unknown or missing. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
Fallback material for faces whoseusemtlis unknown or missing.
-
-
Constructor Details
-
ObjMaterial
-
-
Method Details
-
getName
Material name from thenewmtlstatement. -
getColor
Diffuse color (Kd) with alpha taken fromd(1.0 → alpha 255 opaque, lower values → translucent).
-