Seconded.Nash wrote:I wish ZDoom's code would be changed so that it simply treats a grayscale graphic as an alpha decal (and if the DECALDEF for it has the "color" property set).
Automatic alpha-map decals from grayscale images
Moderator: GZDoom Developers
Automatic alpha-map decals from grayscale images
First, how does ZDoom know that you're using a grayscale graphic? If it was to literally check the index number of the color against the known original palette, that would break the moment someone uses a custom palette.
How does the color property help clarify this? The wiki's entry on it is... less than helpful.
How does the color property help clarify this? The wiki's entry on it is... less than helpful.
Read the appropriate PNG chunk, of course. IIRC, A palette isn't stored with grayscale images at all.HotWax wrote:First, how does ZDoom know that you're using a grayscale graphic?
Spoiler: more info on that
The 'color' property defines what color the decal should be drawn in. An alpha-map must have a color defined, so leaving that property blank could default to drawing the decal as a grayscale image, in case that may have been the intended effect.HotWax wrote:How does the color property help clarify this?
