Skip to content

Commit

Permalink
fix(webgl): uniform array & output var handling
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 6, 2019
1 parent a804c28 commit 7e559a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webgl/src/shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export const shaderSourceFromAST = (
for (let id in spec.uniforms) {
const u = spec.uniforms[id];
unis[id] = isArray(u)
? u.length === 3
? u[0].indexOf("[]") > 0
? uniform(u[0], id, { num: <number>u[1] })
: uniform(u[0], id)
: uniform(u, id);
Expand Down Expand Up @@ -318,7 +318,7 @@ export const shaderSourceFromAST = (
for (let id in outs) {
const o = outs[id];
outputs[id] = isArray(o)
? output(o[0], id, { num: o[1] })
? output(o[0], id, { loc: o[1] })
: output(o, id);
}
} else {
Expand Down

0 comments on commit 7e559a1

Please sign in to comment.