[x3d-public] X3DOM Documentation: Gamma Correction

J. Sheurich mufti11 at web.de
Wed Sep 2 00:56:16 PDT 2020


On 2020-09-02 11:41, Patrick Dähne wrote:
> Hi Michalis,
>
>> 7. Castle Game Engine by default applies gamma correction on PhysicalMaterial, and *does not* apply gamma correction on Material or UnlitMaterial.
> Ok. Let’s say you have something like that:
>
> Shape {
>    appearance Appearance {
>      material Material {
>        texture DEF tex ImageTexture {
>          url "foo.png"
>        }
>      }
>    }
>    geometry Box {}
> }
>
> Shape {
>    appearance Appearance {
>      material PhysicalMaterial {
>        baseTexture USE tex
>      }
>    }
>    geometry Box {}
> }
>
> What’s the internal OpenGL texture format of the ImageTexture?  GL_RGB or  GL_SRGB?
>
a png-file can have alpha information, therefore it would be logical to
have GL_SRGBA for .png and .gif

white_dune uses GL_SRGBA ....

so long

MUFTI





More information about the x3d-public mailing list