mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
f2209a0b51
Note that this applies only to the builtin shaders - interface for Kage stays unchanged for compatibility. Minor compatibility delta: when interpolating alpha values, previous code has created nonsense values, such as, when interpolating from fully-transparent-black (0,0,0,0) to opaque-white (1,1,1,1), something like half-transparent-grey (0.25,0.25,0.25,0.5) where half-transparent-white (0.5,0.5,0.5,0.5) is used by the new code. I assume this is a strict improvement, however this may warrant some testing. Possible later improvement could be moving the premultiplication from fragment shader to CPU. Did not do this as it makes the code rather inconsistent of Kage vs built-in shader usage. Updates #1772 |
||
---|---|---|
.. | ||
gl | ||
gles | ||
bytes.go | ||
context_desktop.go | ||
context_js.go | ||
context_mobile.go | ||
context_notwebgl1.go | ||
context_webgl1.go | ||
context.go | ||
defaultshader.go | ||
framebuffer.go | ||
gl_js.go | ||
graphics_mobile.go | ||
graphics.go | ||
image.go | ||
locationcache.go | ||
program.go | ||
shader_desktop.go | ||
shader_js.go | ||
shader_mobile.go | ||
shader.go |