Add palette system
This commit is contained in:
parent
f60ae06f59
commit
98d1fc9ca2
19 changed files with 196 additions and 113 deletions
|
|
@ -14,6 +14,10 @@ export const loadUniform = (
|
|||
(gl: UniversalRenderingContext, value: any, location: WebGLUniformLocation) => void
|
||||
> = new Map();
|
||||
{
|
||||
converters.set(WebGLRenderingContext.SAMPLER_2D, (gl, v, l) => {
|
||||
gl.uniform1i(l, v);
|
||||
});
|
||||
|
||||
converters.set(WebGLRenderingContext.FLOAT, (gl, v, l) => {
|
||||
if (v instanceof Array || v[0] instanceof Float32Array) {
|
||||
if (v.length == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue