in gui.js [189:206]
function updateWebGLBlend(index, f) {
return function(value) {
const color = config['blendColor'+index];
const curBlend =
{ color: { r: color[0], g: color[1], b: color[2], a: color[3] }
, colorEq: [ C.BLEND_FUNCS_IDS[config['blendColorEqFn'+index]]
, C.BLEND_FACTORS_IDS[config['blendColorEqFactor0'+index]]
, C.BLEND_FACTORS_IDS[config['blendColorEqFactor1'+index]]
]
, alphaEq: [ C.BLEND_FUNCS_IDS[config['blendAlphaEqFn'+index]]
, C.BLEND_FACTORS_IDS[config['blendAlphaEqFactor0'+index]]
, C.BLEND_FACTORS_IDS[config['blendAlphaEqFactor1'+index]]
]
}
const newBlend = f(curBlend, value);
funcs.changeWGLBlend(index, newBlend);
}
}