RFR: 8234920: Add SpotLight to the selection of 3D light types

Nir Lisker nlisker at openjdk.java.net
Tue Dec 22 17:43:06 UTC 2020


On Fri, 30 Oct 2020 11:52:03 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

>> Not that it's all that relevant, but I will note that the (very old) Java 3D API also had [SpotLight](https://download.java.net/media/java3d/javadoc/1.5.0/javax/media/j3d/SpotLight.html) as a subclass of [PointLight](https://download.java.net/media/java3d/javadoc/1.5.0/javax/media/j3d/PointLight.html).
>
> Is the old implementation worth looking at, or is is completely different?
> 
> I updated the API after subclassing `PointLight`. After we settle on it I will submit a CSR and we can move on to the implementation.

Another API point is how to implement the direction - a `Point3D` or 3 doubles. We've had this discussion before when talking about transforms, and didn't reach a conclusion.

-------------

PR: https://git.openjdk.java.net/jfx/pull/334


More information about the openjfx-dev mailing list