direction vector property.
DirectionalLights can represent strong light sources that are far enough from the objects they illuminate
that their light rays appear to be parallel. Because these light sources are considered to be infinitely far, they
cannot be attenuated. The sun is a common light source that can be simulated with this light type.
PhongMaterial
| Modifier and Type | Field and Description |
|---|---|
| private static final Point3D | |
| private ObjectProperty | direction
The direction vector of the directional light. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DirectionalLight(Color
the color of the light source color)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | |
| private NGNode | |
| private void | |
| public final Point3D | |
| public final void |
| DEFAULT_DIRECTION | back to summary |
|---|---|
| private static final Point3D DEFAULT_DIRECTION | |
| direction | back to summary |
|---|---|
| private ObjectProperty<Point3D> direction The direction vector of the directional light. It can be rotated by setting a rotation transform on the
| |
| DirectionalLight | back to summary |
|---|---|
| public DirectionalLight() Creates a new | |
| DirectionalLight | back to summary |
|---|---|
| public DirectionalLight(Color color) Creates a new
| |
| directionProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| getDirection | back to summary |
|---|---|
| public final Point3D getDirection() | |
| setDirection | back to summary |
|---|---|
| public final void setDirection(Point3D value) | |