Graf Zahl wrote:This will have to wait until Randi comes back to fix the rendering problems, but yes, for testing a clean pull request would be appreciated.
dpJudas wrote:1) Oops. Forgot about having merged that in. Will remove it again. Probably should close that other PR because, after seeing how gzdoom does its skies, it is clear to me that any changes to this part should be more fundamental. IMHO the code should be changed (for both pal and rgba) so that it uses specialized sky drawers that allow for the "fade to solid" effect and uses math that effectively renders a skydome.
dpJudas wrote:2) Hmm yes, that's a better way of doing it. The only special thing about GetPixelsBgra is that it includes mipmaps (immediately following after the main image).
Graf Zahl wrote:I also saw the premultiplied alpha, so it'll most likely require an FBitmap subclass, or a second pass over the data. The mipmaps shouldn't be a problem, you'll need the full image anyway to create them. Keep GetPixelsBgra and let it use CopyTrueColorPixels to do its job, I'd say.
Users browsing this forum: Baidu [Spider] and 1 guest