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

Improve / optimize Material related types and logic #200

Open
vatro opened this issue Dec 18, 2022 · 0 comments
Open

Improve / optimize Material related types and logic #200

vatro opened this issue Dec 18, 2022 · 0 comments

Comments

@vatro
Copy link
Owner

vatro commented Dec 18, 2022

Reference this issue when improving / optimizing Material related types and logic in general.

vatro pushed a commit that referenced this issue Dec 18, 2022
…Material` types (#200)

Make them more explicit.
vatro pushed a commit that referenced this issue Dec 18, 2022
…EnvMap` (#200)

This way the type of Material can be further narrowed for common use cases:
-  `MeshMaterialWithColor`:  can be used with functions which assign / alter Material's color
-  `MeshMaterialWithEnvMap`:  can be used with functions which assign / alter Material's environment map, e.g. the `CubeCamera` component.
vatro pushed a commit that referenced this issue Dec 18, 2022
So that they can be imported via `import type { Foo }  from "svelthree"`.
@vatro vatro added this to the 1.0.0-next.X milestone Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant