Blender Git Loki
Git Commits -> Revision 116bab7
Revision 116bab7 by Kévin Dietrich (master) August 28, 2016, 14:50 (GMT) |
Fix T47639: OpenGL render with smoke and fire incorrect when using transparency. The issue is that we are rendering to a 0..1 clamped sRGB buffer with unpremultiplied alpha, where the correct thing to do would be to render to an unclamped linear premultiplied alpha buffer. Then we would just make fire purely emissive without affecting the alpha channel at all, but that doesn't work here. So for now, draw fire and smoke separately using different shaders and blend modes, like it used to before the smoke programs were rewritten (see rB0372b642). |
Commit Details:
Full Hash: 116bab702e009ce8043b976b4a9c4afa4c7ff5b0
Parent Commit: a5261e0
Lines Changed: +142, -87
1 Added Path:
/source/blender/gpu/shaders/gpu_shader_fire_frag.glsl (+17, -0) (View)