Basics
Guides
API Reference
Basics
Guides
API Reference
[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.
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).
ColorObj is a Color wrapper.this objectsetSpecularColor (object ColorObj)
Sets the specular color (the color of specular highlights).
ColorObj is a Color wrapper.this objectsetSpecularPower (double Power)
Sets the specular power. Higher values produce a smaller, sharper highlight.
Power is a double with the specular power.this objectsetDiffuseMap (object Img)
Sets the diffuse map (texture sampled for the base color).
Img is an Image wrapper.this objectsetSpecularMap (object Img)
Sets the specular map (texture sampled to modulate the specular color).
Img is an Image wrapper.this objectsetBumpMap (object Img)
Sets the bump map (normal map used to perturb surface lighting).
Img is an Image wrapper.this objectsetSelfIlluminationMap (object Img)
Sets the self illumination map (texture sampled to add emissive light).
Img is an Image wrapper.this objectgetDiffuseColor ()
Returns the diffuse color.
A Color wrapper.diffuseColorProperty ()
Returns the diffuse color property for binding or change listeners.
An AussomJavaObject around an ObjectPropertygetSpecularColor ()
Returns the specular color.
An AussomJavaObject around the javafx.scene.paint.Color.specularColorProperty ()
Returns the specular color property for binding or change listeners.
An AussomJavaObject around an ObjectPropertygetSpecularPower ()
Returns the specular power.
A double with the specular power.specularPowerProperty ()
Returns the specular power property for binding or change listeners.
An AussomJavaObject around a DoubleProperty.getDiffuseMap ()
Returns the diffuse map image.
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.
An AussomJavaObject around an ObjectPropertygetSpecularMap ()
Returns the specular map image.
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.
An AussomJavaObject around an ObjectPropertygetBumpMap ()
Returns the bump map image.
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.
An AussomJavaObject around an ObjectPropertygetSelfIlluminationMap ()
Returns the self illumination map image.
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.
An AussomJavaObject around an ObjectProperty
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.