-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1446 from pixiv/webgpu-r167
BREAKING feature: preparing for Three.js r167
- Loading branch information
Showing
61 changed files
with
317 additions
and
306 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -22,8 +22,8 @@ | |
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"three": "https://cdn.jsdelivr.net/npm/three@0.164.1/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.164.1/examples/jsm/", | ||
"three": "https://cdn.jsdelivr.net/npm/three@0.167.0/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.167.0/examples/jsm/", | ||
"@pixiv/three-vrm": "https://cdn.jsdelivr.net/npm/@pixiv/[email protected]/lib/three-vrm.module.js", | ||
"@pixiv/three-vrm-animation": "../lib/three-vrm-animation.module.js" | ||
} | ||
|
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 |
---|---|---|
|
@@ -22,8 +22,8 @@ | |
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"three": "https://cdn.jsdelivr.net/npm/three@0.164.1/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.164.1/examples/jsm/", | ||
"three": "https://cdn.jsdelivr.net/npm/three@0.167.0/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.167.0/examples/jsm/", | ||
"@pixiv/three-vrm": "https://cdn.jsdelivr.net/npm/@pixiv/[email protected]/lib/three-vrm.module.js", | ||
"@pixiv/three-vrm-animation": "../lib/three-vrm-animation.module.js" | ||
} | ||
|
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 |
---|---|---|
|
@@ -34,8 +34,8 @@ | |
{ | ||
"imports": { | ||
"fflate": "https://cdn.jsdelivr.net/npm/[email protected]/esm/browser.js", | ||
"three": "https://cdn.jsdelivr.net/npm/three@0.164.1/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.164.1/examples/jsm/", | ||
"three": "https://cdn.jsdelivr.net/npm/three@0.167.0/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.167.0/examples/jsm/", | ||
"@pixiv/three-vrm-core": "../../lib/three-vrm-core.module.js" | ||
} | ||
} | ||
|
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
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 |
---|---|---|
|
@@ -23,22 +23,22 @@ | |
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/", | ||
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.webgpu.js", | ||
"three/webgpu": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.webgpu.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/", | ||
"@pixiv/three-vrm-materials-mtoon": "../lib/three-vrm-materials-mtoon.module.js", | ||
"@pixiv/three-vrm-materials-mtoon/nodes": "../lib/nodes/index.module.js" | ||
} | ||
} | ||
</script> | ||
|
||
<script type="module"> | ||
import * as THREE from 'three'; | ||
import * as THREE from 'three/webgpu'; | ||
import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | ||
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js'; | ||
import { MToonNodeMaterial } from '@pixiv/three-vrm-materials-mtoon/nodes'; | ||
|
||
// renderer | ||
const renderer = new WebGPURenderer(); | ||
const renderer = new THREE.WebGPURenderer(); | ||
renderer.setSize( window.innerWidth, window.innerHeight ); | ||
renderer.setPixelRatio( window.devicePixelRatio ); | ||
document.body.appendChild( renderer.domElement ); | ||
|
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 |
---|---|---|
|
@@ -23,24 +23,24 @@ | |
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/", | ||
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.webgpu.js", | ||
"three/webgpu": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.webgpu.js", | ||
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/", | ||
"@pixiv/three-vrm-materials-mtoon": "../lib/three-vrm-materials-mtoon.module.js", | ||
"@pixiv/three-vrm-materials-mtoon/nodes": "../lib/nodes/index.module.js" | ||
} | ||
} | ||
</script> | ||
|
||
<script type="module"> | ||
import * as THREE from 'three'; | ||
import * as THREE from 'three/webgpu'; | ||
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; | ||
import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | ||
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js'; | ||
import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon'; | ||
import { MToonNodeMaterial } from '@pixiv/three-vrm-materials-mtoon/nodes'; | ||
|
||
// renderer | ||
const renderer = new WebGPURenderer(); | ||
const renderer = new THREE.WebGPURenderer(); | ||
renderer.setSize( window.innerWidth, window.innerHeight ); | ||
renderer.setPixelRatio( window.devicePixelRatio ); | ||
document.body.appendChild( renderer.domElement ); | ||
|
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.