Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PhongMaterial

[14:7] extends: Material

Wraps JavaFX PhongMaterial, the standard 3D material based on the Phong shading model. Supports a diffuse color and map, a specular color, power, and map, a bump map for surface detail, and a self illumination map for emissive areas. PhongMaterial is the only concrete Material that ships with JavaFX and is the default material on every Shape3D.

Methods

  • PhongMaterial ()

    Creates a new PhongMaterial with default white diffuse color.

  • setDiffuseColor (object ColorObj)

    Sets the diffuse color (the base color of the material under lighting).

    • @p ColorObj is a Color wrapper.
    • @r this object
  • setSpecularColor (object ColorObj)

    Sets the specular color (the color of specular highlights).

    • @p ColorObj is a Color wrapper.
    • @r this object
  • setSpecularPower (double Power)

    Sets the specular power. Higher values produce a smaller, sharper highlight.

    • @p Power is a double with the specular power.
    • @r this object
  • setDiffuseMap (object Img)

    Sets the diffuse map (texture sampled for the base color).

    • @p Img is an Image wrapper.
    • @r this object
  • setSpecularMap (object Img)

    Sets the specular map (texture sampled to modulate the specular color).

    • @p Img is an Image wrapper.
    • @r this object
  • setBumpMap (object Img)

    Sets the bump map (normal map used to perturb surface lighting).

    • @p Img is an Image wrapper.
    • @r this object
  • setSelfIlluminationMap (object Img)

    Sets the self illumination map (texture sampled to add emissive light).

    • @p Img is an Image wrapper.
    • @r this object
  • getDiffuseColor ()

    Returns the diffuse color.

    • @r A Color wrapper.
  • diffuseColorProperty ()

    Returns the diffuse color property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.
  • getSpecularColor ()

    Returns the specular color.

    • @r An AussomJavaObject around the javafx.scene.paint.Color.
  • specularColorProperty ()

    Returns the specular color property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.
  • getSpecularPower ()

    Returns the specular power.

    • @r A double with the specular power.
  • specularPowerProperty ()

    Returns the specular power property for binding or change listeners.

    • @r An AussomJavaObject around a DoubleProperty.
  • getDiffuseMap ()

    Returns the diffuse map image.

    • @r An AussomJavaObject around the javafx.scene.image.Image, or null when no diffuse map is set.
  • diffuseMapProperty ()

    Returns the diffuse map property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.
  • getSpecularMap ()

    Returns the specular map image.

    • @r An AussomJavaObject around the javafx.scene.image.Image, or null when no specular map is set.
  • specularMapProperty ()

    Returns the specular map property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.
  • getBumpMap ()

    Returns the bump map image.

    • @r An AussomJavaObject around the javafx.scene.image.Image, or null when no bump map is set.
  • bumpMapProperty ()

    Returns the bump map property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.
  • getSelfIlluminationMap ()

    Returns the self illumination map image.

    • @r An AussomJavaObject around the javafx.scene.image.Image, or null when no self illumination map is set.
  • selfIlluminationMapProperty ()

    Returns the self illumination map property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.