[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Adding internalformat param to all texImage2d variants

The suggested conversions all seem to have issues which opens up another can of worms,

ALPHA                                                   Convert to grayscale                    Use alpha, ignore RGB

What does it mean to convert to gray scale?  Is this a gamma biased conversion? One that multiplies R G and B as appropriate for their overall contribution to luminance? Take max of R, G, B? What if my app needs it one way and yours another?

LUMINANCE                                               Convert to grayscale                    Convert RGB to grayscale, ignore alpha
LUMINANCE_ALPHA                         Convert to grayscale, alpha=1           Convert RGB to grayscale, use alpha
RGB                                                             Use RGB                                         Use RGB, ignore alpha

This RGB pre-multiplied by the alpha or not? Which is appropriate for my app?

RGBA                                                    Use RGB, alpha=1                                Use RGBA