MeshDistanceMaterial

THREE.MeshDistanceMaterial
See theMeshDistanceMaterial companion object
class MeshDistanceMaterial(parameters: UndefOr[Object]) extends Material

A material used internally for implementing shadow mapping with point lights.

Can also be used to customize the shadow casting of an object by assigning an instance of MeshDistanceMaterial to [[Object3D#customDistanceMaterial]]. This approach can be used to ensure transparent parts of objects do not cast shadows.

Attributes

Companion
object
Graph
Supertypes
class Material
class Object
trait Any
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def copy(material: Material): this.type

Attributes

Inherited from:
Material
def customProgramCacheKey(): String

Attributes

Inherited from:
Material
def dispose(): Unit

Attributes

Inherited from:
Material
def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def jsClone(): this.type

Attributes

Inherited from:
Material
def onBeforeCompile(shader: Object): Unit

Attributes

Inherited from:
Material
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def setValues(values: Object): Unit

Attributes

Inherited from:
Material
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var alphaMap: UndefOr[Object]

The alpha map is a grayscale texture that controls the opacity across the surface (black: fully transparent; white: fully opaque).

The alpha map is a grayscale texture that controls the opacity across the surface (black: fully transparent; white: fully opaque).

Attributes

var displacementBias: Double

The offset of the displacement map's values on the mesh's vertices.

The offset of the displacement map's values on the mesh's vertices.

Attributes

var displacementMap: UndefOr[Object]

The displacement map affects the position of the mesh's vertices.

The displacement map affects the position of the mesh's vertices.

Attributes

var displacementScale: Double

How much the displacement map affects the mesh (where black is no displacement, and white is maximum displacement).

How much the displacement map affects the mesh (where black is no displacement, and white is maximum displacement).

Attributes

val isMeshDistanceMaterial: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

var map: UndefOr[Object]

The color map. May optionally include an alpha channel, typically combined with transparent or alphaTest properties.

The color map. May optionally include an alpha channel, typically combined with transparent or alphaTest properties.

Attributes

Inherited fields

val `type`: String

Attributes

Inherited from:
Material
var alphaTest: Double

Attributes

Inherited from:
Material
var alphaToCoverage: Boolean

Attributes

Inherited from:
Material
var blending: Int

Attributes

Inherited from:
Material
var depthTest: Boolean

Attributes

Inherited from:
Material
var depthWrite: Boolean

Attributes

Inherited from:
Material
val id: Int

Attributes

Inherited from:
Material
var name: String

Attributes

Inherited from:
Material
var opacity: Double

Attributes

Inherited from:
Material
var polygonOffset: Boolean

Attributes

Inherited from:
Material
var polygonOffsetFactor: Double

Attributes

Inherited from:
Material
var polygonOffsetUnits: Double

Attributes

Inherited from:
Material
var precision: UndefOr[String]

Attributes

Inherited from:
Material
var premultipliedAlpha: Boolean

Attributes

Inherited from:
Material
var side: Int

Attributes

Inherited from:
Material
var stencilWrite: Boolean

Attributes

Inherited from:
Material
var toneMapped: Boolean

Attributes

Inherited from:
Material
var transparent: Boolean

Attributes

Inherited from:
Material
var userData: Object

Attributes

Inherited from:
Material
val uuid: String

Attributes

Inherited from:
Material
var version: Int

Attributes

Inherited from:
Material
var vertexColors: Boolean

Attributes

Inherited from:
Material
var visible: Boolean

Attributes

Inherited from:
Material