CImg icon indicating copy to clipboard operation
CImg copied to clipboard

Rendering a 3D object with gouraud shading on a RBGA has broken alpha values for the shading

Open MacDue opened this issue 4 years ago • 0 comments

If you attempt to render any 3D object onto an RGBA image (with a transparent background -- initially the image is all zeros), any shaded areas of the object will be transparent in the output image (rather than just being shaded with a dark colour -- and a transparent background where the object is not).

There does not seem to be any way to work around this (especially if you render the object with an opacity < 1).

MacDue avatar Jul 17 '21 23:07 MacDue