constantAttenuation, linearAttenuation,
quadraticAttenuation, and maxRange properties.
PointLights can represent point-like light sources with little to no directionality. Light bulbs and candles
are common light sources that can be simulated with this light type.
PhongMaterial
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | constantAttenuation
The constant attenuation coefficient. |
| private static final double | |
| private static final double | |
| private static final double | |
| private static final double | |
| private DoubleProperty | linearAttenuation
The linear attenuation coefficient. |
| private DoubleProperty | maxRange
The maximum range of this |
| private DoubleProperty | quadraticAttenuation
The quadratic attenuation coefficient. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PointLight(Color
the color of the light source color)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public final DoubleProperty | |
| private NGNode | |
| private void | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void |
| constantAttenuation | back to summary |
|---|---|
| private DoubleProperty constantAttenuation The constant attenuation coefficient. This is the term
where
| |
| DEFAULT_CONSTANT_ATTENUATION | back to summary |
|---|---|
| private static final double DEFAULT_CONSTANT_ATTENUATION | |
| DEFAULT_LINEAR_ATTENUATION | back to summary |
|---|---|
| private static final double DEFAULT_LINEAR_ATTENUATION | |
| DEFAULT_MAX_RANGE | back to summary |
|---|---|
| private static final double DEFAULT_MAX_RANGE | |
| DEFAULT_QUADRATIC_ATTENUATION | back to summary |
|---|---|
| private static final double DEFAULT_QUADRATIC_ATTENUATION | |
| linearAttenuation | back to summary |
|---|---|
| private DoubleProperty linearAttenuation The linear attenuation coefficient. This is the term
where
| |
| maxRange | back to summary |
|---|---|
| private DoubleProperty maxRange The maximum range of this
Lower
Nodes that are inside the light's range can still be excluded from the light's effect by removing them from
its
| |
| quadraticAttenuation | back to summary |
|---|---|
| private DoubleProperty quadraticAttenuation The quadratic attenuation coefficient. This is the term
where
| |
| PointLight | back to summary |
|---|---|
| public PointLight() Creates a new instance of | |
| PointLight | back to summary |
|---|---|
| public PointLight(Color color) Creates a new instance of
| |
| constantAttenuationProperty | back to summary |
|---|---|
| public final DoubleProperty constantAttenuationProperty() | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| getConstantAttenuation | back to summary |
|---|---|
| public final double getConstantAttenuation() | |
| getLinearAttenuation | back to summary |
|---|---|
| public final double getLinearAttenuation() | |
| getMaxRange | back to summary |
|---|---|
| public final double getMaxRange() | |
| getQuadraticAttenuation | back to summary |
|---|---|
| public final double getQuadraticAttenuation() | |
| linearAttenuationProperty | back to summary |
|---|---|
| public final DoubleProperty linearAttenuationProperty() | |
| maxRangeProperty | back to summary |
|---|---|
| public final DoubleProperty maxRangeProperty() | |
| quadraticAttenuationProperty | back to summary |
|---|---|
| public final DoubleProperty quadraticAttenuationProperty() | |
| setConstantAttenuation | back to summary |
|---|---|
| public final void setConstantAttenuation(double value) | |
| setLinearAttenuation | back to summary |
|---|---|
| public final void setLinearAttenuation(double value) | |
| setMaxRange | back to summary |
|---|---|
| public final void setMaxRange(double value) | |
| setQuadraticAttenuation | back to summary |
|---|---|
| public final void setQuadraticAttenuation(double value) | |