How to use the blendFuncSeparate function from bindings
Find comprehensive JavaScript bindings.blendFuncSeparate code examples handpicked from public code repositorys.
GitHub: mikeseven/node-webgl
![mikeseven profile picture](/mikeseven.png?size=40)
113 114 115 116 117 118 119 120 121 122
throw new TypeError('Expected blendFunc(number sfactor, number dfactor)'); } return _blendFunc(sfactor, dfactor); } var _blendFuncSeparate = gl.blendFuncSeparate; gl.blendFuncSeparate = function blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha) { if (!(arguments.length === 4 && typeof srcRGB === "number" && typeof dstRGB === "number" && typeof srcAlpha === "number" && typeof dstAlpha === "number")) { throw new TypeError('Expected blendFuncSeparate(number srcRGB, number dstRGB, number srcAlpha, number dstAlpha)'); }
bindings.createKey is the most popular function in bindings (8616 examples)