Skip to content

Commit

Permalink
fix(shader-ast-stdlib): fix rotationX4/Y4 return types
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 6, 2019
1 parent 2b05ece commit c858dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shader-ast-stdlib/src/matrix/rotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const rotationZ3 = defn("mat3", "rotationZ3", [["float"]], (theta) => {
];
});

export const rotationX4 = defn("mat3", "rotationX4", [["float"]], (theta) => {
export const rotationX4 = defn("mat4", "rotationX4", [["float"]], (theta) => {
let cs: Vec2Term;
return [
(cs = sym(cossin(theta))),
Expand All @@ -69,7 +69,7 @@ export const rotationX4 = defn("mat3", "rotationX4", [["float"]], (theta) => {
];
});

export const rotationY4 = defn("mat3", "rotationY4", [["float"]], (theta) => {
export const rotationY4 = defn("mat4", "rotationY4", [["float"]], (theta) => {
let cs: Vec2Term;
return [
(cs = sym(cossin(theta))),
Expand Down

0 comments on commit c858dce

Please sign in to comment.