Skip to content

Commit

Permalink
fix(shader-ast-stdlib): update additive() fn arg type
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 3, 2019
1 parent 1711064 commit 5d66ff2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/shader-ast-stdlib/src/math/additive.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Fn } from "@thi.ng/api";
import {
add,
assign,
Expand All @@ -6,14 +7,15 @@ import {
FLOAT0,
FLOAT05,
FloatSym,
FloatTerm,
forLoop,
Func1,
inc,
lt,
mul,
Prim,
ret,
sym
sym,
Term
} from "@thi.ng/shader-ast";

/**
Expand All @@ -37,7 +39,7 @@ import {
*/
export const additive = <T extends Prim>(
type: T,
fn: Func1<T, "float">,
fn: Fn<Term<T>, FloatTerm>,
oct = 4,
name = "additive"
) =>
Expand Down

0 comments on commit 5d66ff2

Please sign in to comment.