Skip to content

Ported to TypeScript#33

Draft
MatiasHiltunen wants to merge 3 commits intodgreenheck:mainfrom
MatiasHiltunen:main
Draft

Ported to TypeScript#33
MatiasHiltunen wants to merge 3 commits intodgreenheck:mainfrom
MatiasHiltunen:main

Conversation

@MatiasHiltunen
Copy link

Some context here: #32

I would have liked to spend some more time with this but unfortunately I'm quite occupied elsewhere and wanted to make this PR as this could work as ground work for more optimal TypeScript Port and perhaps even get the advantages of the most recent Threejs version (read TSL).

What has been done:

Directly converted to TypeScript and pumped package versions. Roughly tested manually and everything seems to work.

Packaging needs to be fixed though.

If accepted, I'd propose that 'typescript' branch is created of this to allow addressing the packaging related issues. Perhaps also for migration to vite 8 and Threejs' just release major update?

@MatiasHiltunen
Copy link
Author

Perhaps due to version upgrade of threejs the roughnessMap is not part of the MeshPhongMaterial, commented that out.

Transformed couple of async assets loading to be loaded parallel instead of awaiting sequential loads. Promise.all is used in that regard as all assets are expected to be loaded successfully.

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.

1 participant