-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 28cab87 🚀
- Loading branch information
Showing
29 changed files
with
18,777 additions
and
17,727 deletions.
There are no files selected for viewing
791 changes: 341 additions & 450 deletions
791
assets/compute.worker.dfd04421.js → assets/compute.worker-155b2df9.js
Large diffs are not rendered by default.
Oops, something went wrong.
750 changes: 311 additions & 439 deletions
750
assets/controller.worker.1171e6ae.js → assets/controller.worker-62292851.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
struct Primitve { | ||
objectToWorld: mat4x4<f32>; | ||
inverseMatrix: mat4x4<f32>; | ||
inverseRotation: mat4x4<f32>; | ||
objectToWorld: mat4x4<f32>, | ||
inverseMatrix: mat4x4<f32>, | ||
inverseRotation: mat4x4<f32>, | ||
|
||
bounds: vec4<f32>; | ||
center0: vec4<f32>; // center0 xyz, time0 w | ||
center1: vec4<f32>; // center1 xyz, time1 w | ||
bounds: vec4<f32>, | ||
center0: vec4<f32>, // center0 xyz, time0 w | ||
center1: vec4<f32>, // center1 xyz, time1 w | ||
|
||
v0: vec4<f32>; // triangle vertex normal | ||
v1: vec4<f32>; // triangle vertex normal | ||
v2: vec4<f32>; // triangle vertex normal | ||
v0: vec4<f32>, // triangle vertex normal | ||
v1: vec4<f32>, // triangle vertex normal | ||
v2: vec4<f32>, // triangle vertex normal | ||
|
||
n0: vec4<f32>; // triangle vertex normal | ||
n1: vec4<f32>; // triangle vertex normal | ||
n2: vec4<f32>; // triangle vertex normal | ||
n0: vec4<f32>, // triangle vertex normal | ||
n1: vec4<f32>, // triangle vertex normal | ||
n2: vec4<f32>, // triangle vertex normal | ||
|
||
uv0: vec4<f32>; // triangle vertex texture coordinate | ||
uv1: vec4<f32>; // triangle vertex texture coordinate | ||
uv2: vec4<f32>; // triangle vertex texture coordinate | ||
uv0: vec4<f32>, // triangle vertex texture coordinate | ||
uv1: vec4<f32>, // triangle vertex texture coordinate | ||
uv2: vec4<f32>, // triangle vertex texture coordinate | ||
|
||
radius: f32; | ||
k: f32; | ||
radius: f32, | ||
k: f32, | ||
|
||
primitiveType: u32; | ||
materialIndex: u32; | ||
primitiveType: u32, | ||
materialIndex: u32, | ||
|
||
// padding | ||
// float pad_0; | ||
// float pad_1; | ||
// float pad_0, | ||
// float pad_1, | ||
}; | ||
|
||
struct Primitives { | ||
primitives: array<Primitve>; | ||
primitives: array<Primitve>, | ||
}; | ||
|
||
[[group(0), binding(4)]] var<storage, read_write> primitivesBuffer: Primitives; | ||
@group(0) @binding(4) var<storage, read_write> primitivesBuffer: Primitives; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
struct Material { | ||
baseColor: vec4<f32>; | ||
roughness: f32; | ||
indexOfRefraction: f32; | ||
materialType: u32; | ||
textureIndex: u32; | ||
baseColor: vec4<f32>, | ||
roughness: f32, | ||
indexOfRefraction: f32, | ||
materialType: u32, | ||
textureIndex: u32, | ||
}; | ||
|
||
struct Materials { | ||
materials: array<Material>; | ||
materials: array<Material>, | ||
}; | ||
|
||
[[group(0), binding(5)]] var<storage, read_write> materialBuffer: Materials; | ||
@group(0) @binding(5) var<storage, read_write> materialBuffer: Materials; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.