-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
1,835 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+215 KB
src/.vuepress/public/assets/demo/animation/data/Background_Roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+128 KB
src/.vuepress/public/assets/demo/animation/data/ChainTexture_Albedo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 KB
src/.vuepress/public/assets/demo/animation/data/ChainTexture_Metallic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.6 KB
src/.vuepress/public/assets/demo/animation/data/ChainTexture_Normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+185 KB
src/.vuepress/public/assets/demo/animation/data/ChainTexture_Roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added
BIN
+394 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Arch_diffuse.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+126 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Arch_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+354 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Arch_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+429 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Bricks_a_Albedo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+191 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Bricks_a_Normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+332 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Bricks_a_Roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+362 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Ceiling_diffuse.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+428 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Ceiling_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+395 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Ceiling_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+399 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_a_diffuse.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+307 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_a_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+184 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_a_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+485 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_b_diffuse.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+354 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_b_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+277 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_b_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+515 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_c_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+387 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_c_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+145 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Column_c_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+681 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_Blue_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+495 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_Blue_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+627 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_Green_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+495 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_Green_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+642 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_Red_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+495 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_Red_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+252 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_metallic.jpg
Oops, something went wrong.
Binary file added
BIN
+229 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Curtain_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+237 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Details_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+256 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Details_metallic.jpg
Oops, something went wrong.
Binary file added
BIN
+227 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Details_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+353 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Details_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+511 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_Blue_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+388 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_Blue_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+513 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_Green_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+388 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_Green_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+549 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_Red_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+388 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_Red_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+486 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_metallic.jpg
Oops, something went wrong.
Binary file added
BIN
+140 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Fabric_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+296 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_FlagPole_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+285 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_FlagPole_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+406 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_FlagPole_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+408 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Floor_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+405 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Floor_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+540 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Floor_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+655 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Roof_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+761 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Roof_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+505 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Roof_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+1.52 MB
src/.vuepress/public/assets/demo/animation/data/Sponza_Thorn_diffuse.png
Oops, something went wrong.
Binary file added
BIN
+261 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Thorn_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+386 KB
src/.vuepress/public/assets/demo/animation/data/Sponza_Thorn_roughness.jpg
Oops, something went wrong.
Binary file added
BIN
+232 KB
src/.vuepress/public/assets/demo/animation/data/VaseHanging_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+184 KB
src/.vuepress/public/assets/demo/animation/data/VaseHanging_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+279 KB
src/.vuepress/public/assets/demo/animation/data/VaseHanging_roughness.jpg
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+172 KB
src/.vuepress/public/assets/demo/animation/data/VasePlant_roughness.jpg
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+66.6 KB
src/.vuepress/public/assets/demo/animation/data/VaseRound_roughness.jpg
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1.02 MB
src/.vuepress/public/assets/demo/animation/data/paladin/Paladin_diffuse.jpg
Oops, something went wrong.
Binary file added
BIN
+1.18 MB
src/.vuepress/public/assets/demo/animation/data/paladin/Paladin_normal.jpg
Oops, something went wrong.
Binary file added
BIN
+436 KB
src/.vuepress/public/assets/demo/animation/data/paladin/Paladin_specular.jpg
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>My Game</title> | ||
|
||
<link rel="stylesheet" href="styles.css" /> | ||
<script type="module" defer src="main.js"></script> | ||
</head> | ||
|
||
<body> | ||
<noscript>This page contains WebAssembly and JavaScript content, please enable JavaScript in your browser.</noscript> | ||
<main id="main"> | ||
<button class="button-3d" id="button-start" type="button" role="button"> | ||
Start | ||
</button> | ||
</main> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const moduleGame = import('./pkg/executor_wasm.js').then(({ default: init, main }) => | ||
init().then(() => main) | ||
) | ||
const elementTargetButton = document.querySelector('#button-start') | ||
const elementMain = document.querySelector('#main') | ||
|
||
const run = async () => { | ||
elementTargetButton.removeEventListener('click', run) | ||
elementMain.remove() | ||
|
||
const context = new AudioContext() | ||
|
||
if (context.state !== 'running') { | ||
await context.resume() | ||
} | ||
|
||
return (await moduleGame)() | ||
} | ||
|
||
elementTargetButton.addEventListener('click', run, { | ||
once: true, | ||
passive: true, | ||
}) |
45 changes: 45 additions & 0 deletions
45
src/.vuepress/public/assets/demo/animation/pkg/executor_wasm.d.ts
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
*/ | ||
export function main(): void; | ||
|
||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
|
||
export interface InitOutput { | ||
readonly memory: WebAssembly.Memory; | ||
readonly main: () => void; | ||
readonly __wbindgen_malloc: (a: number, b: number) => number; | ||
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; | ||
readonly __wbindgen_export_2: WebAssembly.Table; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1eacccca920c1482: (a: number, b: number, c: number) => void; | ||
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h068700db575528c7: (a: number, b: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6b93e1c0e192e7b4: (a: number, b: number, c: number, d: number) => void; | ||
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1d21f08790199d56: (a: number, b: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf90df72b95cb31fc: (a: number, b: number, c: number) => void; | ||
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8f1f0859adbe0574: (a: number, b: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc572c7b0d5883842: (a: number, b: number, c: number) => void; | ||
readonly __wbindgen_free: (a: number, b: number, c: number) => void; | ||
readonly __wbindgen_exn_store: (a: number) => void; | ||
} | ||
|
||
export type SyncInitInput = BufferSource | WebAssembly.Module; | ||
/** | ||
* Instantiates the given `module`, which can either be bytes or | ||
* a precompiled `WebAssembly.Module`. | ||
* | ||
* @param {SyncInitInput} module | ||
* | ||
* @returns {InitOutput} | ||
*/ | ||
export function initSync(module: SyncInitInput): InitOutput; | ||
|
||
/** | ||
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and | ||
* for everything else, calls `WebAssembly.instantiate` directly. | ||
* | ||
* @param {InitInput | Promise<InitInput>} module_or_path | ||
* | ||
* @returns {Promise<InitOutput>} | ||
*/ | ||
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>; |
Oops, something went wrong.