Capítulo 67 de 859

Chapter 67: MeshBasicMaterial

Core Idea

A material for drawing geometries in a simple shaded (flat or wireframe) way.

This material is not affected by lights.

Key Concepts

  • alphaMap : Texture: The alpha map is a grayscale texture that controls the opacity across the surface (black: fully transparent; white: fully opaque).
  • aoMap : Texture: The red channel of this texture is used as the ambient occlusion map. Requires a second set of UVs.
  • aoMapIntensity : number: Intensity of the ambient occlusion effect. Range is [0,1], where 0 disables ambient occlusion. Where intensity is 1 and the AO map's …
  • color : Color: Color of the material.
  • combine : MultiplyOperation | MixOperation | AddOperation: How to combine the result of the surface's color with the environment map, if any.
  • envMap : Texture: The environment map.
  • envMapRotation : Euler: The rotation of the environment map in radians.
  • fog : boolean: Whether the material is affected by fog or not.
  • isMeshBasicMaterial : boolean (readonly): This flag can be used for type testing.
  • lightMap : Texture: The light map. Requires a second set of UVs.

Reference Tables

Constructor

Signature
new MeshBasicMaterial( parameters : Object )

Properties

PropertyDescription
.alphaMap : TextureThe alpha map is a grayscale texture that controls the opacity across the surface (black: fully transparent; white: fully opaque).
.aoMap : TextureThe red channel of this texture is used as the ambient occlusion map. Requires a second set of UVs.
.aoMapIntensity : numberIntensity of the ambient occlusion effect. Range is [0,1], where 0 disables ambient occlusion. Where intensity is 1 and the AO map's red channel is also 1, ambient light is fully occluded on …
.color : ColorColor of the material.
`.combine : MultiplyOperationMixOperation
.envMap : TextureThe environment map.
.envMapRotation : EulerThe rotation of the environment map in radians.
.fog : booleanWhether the material is affected by fog or not.
.isMeshBasicMaterial : boolean (readonly)This flag can be used for type testing.
.lightMap : TextureThe light map. Requires a second set of UVs.
.lightMapIntensity : numberIntensity of the baked light.
.map : TextureThe color map. May optionally include an alpha channel, typically combined with Material#transparent or Material#alphaTest. The texture map col…
.reflectivity : numberHow much the environment map affects the surface. The valid range is between 0 (no reflections) and 1 (full reflections).
.refractionRatio : numberThe index of refraction (IOR) of air (approximately 1) divided by the index of refraction of the material. It is used with environment mapping modes [CubeRefractionMapping](global.html#CubeRefraction…
.specularMap : TextureSpecular map used by the material.
.wireframe : booleanRenders the geometry as a wireframe.
`.wireframeLinecap : 'round''bevel'
`.wireframeLinejoin : 'round''bevel'
.wireframeLinewidth : numberControls the thickness of the wireframe.

Key Takeaways

  1. MeshBasicMaterial extends: EventDispatcher → Material
  2. Most relevant properties: alphaMap, aoMap, aoMapIntensity, color.

Connects To