Emissive component for PhongMaterial
Kevin Rushforth
kevin.rushforth at oracle.com
Wed Apr 10 10:54:35 UTC 2019
Hi Nir,
It seems like a straight-forward addition. On the one hand, an
application can use the self-illumination map to accomplish the same
thing. However, a separate emissive color does allow changing it without
creating a new 1x1 image each time, and makes it possible to combine a
self-illumination map with a modulating emissive color without combining
the two in the application, so I can see it being a nice convenience.
Presuming there is no measurable performance hit, this seems fine to me.
-- Kevin
On 4/10/2019 3:01 AM, Nir Lisker wrote:
> Hi Johan/Kevin,
>
> Iv'e submitted an issue for adding an emissive component to PhongMaterial
> [1].
> This component is the single-color counterpart of the self-illumination
> map. It functions the same way as diffuse color is to diffuse map and
> specular color is to specular map.
> Emissive colors are used to simulate an object giving off light since they
> do not interact with external lighting.
>
> Implementation will consist of simple changes to both 3D rendering
> pipelines.
>
> Please evaluate,
> Nir
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8221720
More information about the openjfx-discuss
mailing list