Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson committed Oct 26, 2023
1 parent 669e5c7 commit f623eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/meshes/box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ export const createBoxMeshWithTangents = (
const tangent = [
constantVal * (deltaUV2[1] * edge1[0] - deltaUV1[1] * edge2[0]),
constantVal * (deltaUV2[1] * edge1[1] - deltaUV1[1] * edge2[1]),
constantVal * (deltaUV2[1] * edge1[2] - deltaUV1[1] * edge2[2])
constantVal * (deltaUV2[1] * edge1[2] - deltaUV1[1] * edge2[2]),
];

const bitangent = [
constantVal * (-deltaUV2[0] * edge1[0] + deltaUV1[0] * edge2[0]),
constantVal * (-deltaUV2[0] * edge1[1] + deltaUV1[0] * edge2[1]),
constantVal * (-deltaUV2[0] * edge1[2] + deltaUV1[0] * edge2[2])
constantVal * (-deltaUV2[0] * edge1[2] + deltaUV1[0] * edge2[2]),
];

//Accumulate tangents and bitangents
Expand Down
2 changes: 1 addition & 1 deletion src/sample/normalMap/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mat4, vec3 } from 'wgpu-matrix';
import { mat4 } from 'wgpu-matrix';
import { makeSample, SampleInit } from '../../components/SampleLayout';
import normalMapWGSL from './normalMap.wgsl';
import { createMeshRenderable } from '../../meshes/mesh';
Expand Down

0 comments on commit f623eb8

Please sign in to comment.