MaterialCreator class

Create a new MTLLoader.MaterialCreator @param baseUrl - Url relative to which textures are loaded @param options - Set of options on how to construct the materials side: Which side to apply the material FrontSide (default), THREE.BackSide, THREE.DoubleSide wrap: What type of wrapping to apply for textures RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping normalizeRGB: RGBs need to be normalized to 0-1 from 0-255 Default: false, assumed to be already normalized ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's Default: false @constructor

Constructors

MaterialCreator(dynamic baseUrl, dynamic options)

Properties

baseUrl String
getter/setter pair
crossOrigin String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
manager ↔ dynamic
getter/setter pair
materials Map<String, dynamic>
getter/setter pair
materialsArray List
getter/setter pair
materialsInfo Map<String, dynamic>
getter/setter pair
nameLookup Map<String, dynamic>
getter/setter pair
options Map<String, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
side int
getter/setter pair
wrap int
getter/setter pair

Methods

convert(dynamic materialsInfo) → dynamic
create(dynamic materialName) → dynamic
createMaterial_(dynamic materialName) → dynamic
getAsArray() → dynamic
getIndex(dynamic materialName) → dynamic
getTextureParams(String value, dynamic matParams) → dynamic
loadTexture(dynamic url, dynamic mapping, dynamic onLoad, dynamic onProgress, dynamic onError) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preload() → dynamic
setCrossOrigin(dynamic value) → dynamic
setManager(dynamic value) → dynamic
setMaterials(dynamic materialsInfo) → dynamic
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited