MeshDepthMaterial

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

A material for rendering geometry based on depth information.

This material renders objects based on their distance from the camera, with closer objects appearing brighter and farther objects appearing darker. It's commonly used for depth-based rendering, shadow mapping, and various post-processing effects.

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.

The alpha map.

Attributes

var depthPacking: Int

The depth packing strategy to use.

The depth packing strategy to use.

Attributes

var displacementBias: Double

The offset of the displacement map's values.

The offset of the displacement map's values.

Attributes

var displacementMap: UndefOr[Object]

Displacement map.

Displacement map.

Attributes

var displacementScale: Double

How much the displacement map affects the mesh.

How much the displacement map affects the mesh.

Attributes

val isMeshDepthMaterial: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

var map: UndefOr[Object]

The alpha map.

The alpha map.

Attributes

var wireframe: Boolean

Whether to render as wireframe.

Whether to render as wireframe.

Attributes

var wireframeLinecap: String

Defines appearance of wireframe ends.

Defines appearance of wireframe ends.

Attributes

var wireframeLinejoin: String

Defines appearance of wireframe joints.

Defines appearance of wireframe joints.

Attributes

var wireframeLinewidth: Double

Controls wireframe thickness.

Controls wireframe thickness.

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