google / bigwheels

BigWheels is a cross-platform, API agnostic framework to build graphics applications.
Apache License 2.0
94 stars 37 forks source link

[glTF] Support emissive texture #462

Open footballhead opened 7 months ago

footballhead commented 7 months ago

emissiveTexture is loaded and passed to the StandardMaterial but is never referenced.

The purpose is outlined in 3.9.3:

The emissive texture and factor control the color and intensity of the light being emitted by the material. The texture MUST contain 8-bit values encoded with the sRGB opto-electronic transfer function so RGB values MUST be decoded to real linear values before they are used for any computations. To achieve correct filtering, the transfer function SHOULD be decoded before performing linear interpolation.

This would allow us to render the following correctly for example: