MeshPhongMaterial

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

A material for shiny surfaces with specular highlights.

The material uses a non-physically based Blinn-Phong model for calculating reflectance. Unlike the Lambertian model used in the MeshLambertMaterial this can simulate shiny surfaces with specular highlights (such as varnished wood).

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): 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(): Material.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 aoMap: UndefOr[Object]

The ambient occlusion map.

The ambient occlusion map.

Attributes

var aoMapIntensity: Double

Intensity of the ambient occlusion effect.

Intensity of the ambient occlusion effect.

Attributes

var bumpMap: UndefOr[Object]

The bump map.

The bump map.

Attributes

var bumpScale: Double

How much the bump map affects the material.

How much the bump map affects the material.

Attributes

var color: Color

Color of the material.

Color of the material.

Attributes

var combine: Int

How to combine the result of the surface's color with the environment map.

How to combine the result of the surface's color with the environment map.

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]

The displacement map.

The displacement map.

Attributes

var displacementScale: Double

How much the displacement map affects the mesh.

How much the displacement map affects the mesh.

Attributes

Emissive (light) color of the material.

Emissive (light) color of the material.

Attributes

var emissiveIntensity: Double

Intensity of the emissive light.

Intensity of the emissive light.

Attributes

var emissiveMap: UndefOr[Object]

Emissive (glow) map.

Emissive (glow) map.

Attributes

var envMap: UndefOr[Object]

The environment map.

The environment map.

Attributes

The rotation of the environment map.

The rotation of the environment map.

Attributes

var flatShading: Boolean

Whether the material is rendered with flat shading.

Whether the material is rendered with flat shading.

Attributes

var fog: Boolean

Whether the material is affected by fog.

Whether the material is affected by fog.

Attributes

val isMeshPhongMaterial: Boolean

This flag can be used for type testing.

This flag can be used for type testing.

Attributes

var lightMap: UndefOr[Object]

The light map.

The light map.

Attributes

var lightMapIntensity: Double

Intensity of the baked light.

Intensity of the baked light.

Attributes

var map: UndefOr[Object]

The color map.

The color map.

Attributes

var normalMap: UndefOr[Object]

The normal map.

The normal map.

Attributes

var normalMapType: Int

The type of normal map.

The type of normal map.

Attributes

How much the normal map affects the material.

How much the normal map affects the material.

Attributes

var reflectivity: Double

How much the environment map affects the surface.

How much the environment map affects the surface.

Attributes

var refractionRatio: Double

The index of refraction (IOR) of air divided by the index of refraction of the material.

The index of refraction (IOR) of air divided by the index of refraction of the material.

Attributes

var shininess: Double

How shiny the specular highlight is; a higher value gives a sharper highlight.

How shiny the specular highlight is; a higher value gives a sharper highlight.

Attributes

Specular color of the material.

Specular color of the material.

Attributes

var specularMap: UndefOr[Object]

The specular map.

The specular 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