Skip to content

Commit

Permalink
feat(shader-ast-glsl): add interpolation qualifier support
Browse files Browse the repository at this point in the history
- update `$decl()` to emit new qualifier if present
  • Loading branch information
postspectacular committed Jul 26, 2020
1 parent 0601af2 commit bb1c566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/shader-ast-glsl/src/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const targetGLSL = (opts?: Partial<GLSLOpts>) => {
}
} else {
opts.loc != null && res.push(`layout(location=${opts.loc}) `);
opts.smooth != null && res.push(opts.smooth + " ");
type = opts.type === "uni" ? "uniform" : opts.type;
}
res.push(type + " ");
Expand Down

0 comments on commit bb1c566

Please sign in to comment.