Skip to content

Conversation

@yue4u
Copy link
Contributor

@yue4u yue4u commented Jun 27, 2024

This PR attempts to address compatibility issues with three before r161.

Removed export * from './nodes' in three-vrm-materials-mtoon and created seperated ./nodes entry in both three-vrm-materials-mtoon and three-vrm

```javascript
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align to three export

@yue4u yue4u requested a review from 0b5vr June 27, 2024 03:53
0b5vr added 5 commits June 28, 2024 16:59
Removed `MToonNodeMaterialLoaderPlugin` and introduce `materialType` property to `MToonMaterialLoaderPlugin`

Updated README, doc comments, and examples according to the new API
move some of outline procedure to a separated function `_shouldGenerateOutline`
…`, `debugMode` from parameters

MToonNodeMaterial does not support these parameters so we delete them
feat: Change the MToonNodeMaterial API
@yue4u
Copy link
Contributor Author

yue4u commented Jul 1, 2024

webgpu-dnd example now produces a lot of errors when using with an order version of three. Can we do something about this?

Screenshot 2024-07-01 at 15 35 05

@0b5vr
Copy link
Contributor

0b5vr commented Jul 1, 2024

webgpu-dnd example now produces a lot of errors when using with an order version of three. Can we do something about this?

WebGPURenderer.renderAsync has been introduced in r161. I believe it's fine in all versions of r161 or later

See: mrdoob/three.js#27597

Errors can happen before instantiate MToonNodeMaterial
@yue4u yue4u merged commit 9f12b0e into dev-v3 Jul 1, 2024
@yue4u yue4u deleted the fix/seperate-nodes-entry-for-backward-compatibility branch July 1, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants