panda3d-simplepbr icon indicating copy to clipboard operation
panda3d-simplepbr copied to clipboard

Clear color not working correctly, alpha value not respected

Open NFSS10 opened this issue 8 months ago • 0 comments

Setting the alpha value to 0 or any other value doesn't change the alpha channel value. Because of this I'm not able to get screenshots with transparency.

self.win.setClearColor((0, 0, 0, 0))

I think it's because of this: https://github.com/Moguri/panda3d-simplepbr/blob/694f9a08365f61c9bc4ae28d5664f0502e053df7/simplepbr/shaders/tonemap.frag#L35

Is there something that I'm missing?

NFSS10 avatar May 28 '24 15:05 NFSS10