Get background_opacity working, at the cost of breaking negative z-index image rendering.

Image rendering will need to use an FBO since OpenGL cannot do proper alpha compositing.
As a first step, the interleaved shaders now generate premultiplied colors as opengl can only alpha blend pre-multipled colors
This commit is contained in:
Kovid Goyal
2017-11-23 09:39:13 +05:30
parent fe214f43cb
commit f85c050235
7 changed files with 187 additions and 104 deletions

View File

@@ -26,8 +26,8 @@ from .utils import (
from .window import load_shader_programs
def load_all_shaders():
load_shader_programs()
def load_all_shaders(semi_transparent=0):
load_shader_programs(semi_transparent)
load_borders_program()