Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: seperate nodes entry for backward compatibility #1427

Merged
merged 12 commits into from
Jul 1, 2024

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

tsconfig.json Show resolved Hide resolved
@@ -92,7 +92,7 @@ Code like this:

```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

bin/build.mjs Outdated Show resolved Hide resolved
bin/build.mjs Outdated Show resolved Hide resolved
@yue4u yue4u requested a review from 0b5vr June 27, 2024 03:53
bin/build.mjs Outdated Show resolved Hide resolved
bin/build.mjs Outdated Show resolved Hide resolved
bin/build.mjs Outdated Show resolved Hide resolved
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
6 checks passed
@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.

2 participants