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

Remove BasicMaterial and allow better ways to create custom shaders using ShaderMaterial #6835

Open
6 of 8 tasks
mvaligursky opened this issue Jul 19, 2024 · 0 comments
Open
6 of 8 tasks
Assignees
Labels
area: graphics Graphics related issue feature request V2 Work for initial release of V2 engine

Comments

@mvaligursky
Copy link
Contributor

mvaligursky commented Jul 19, 2024

Current status

BasicMaterial is a simple engine-provided material with the following key aspects:

Plan for engine 2.0.0

The plan is to remove BasicMaterial from the engine. There are two replacement paths, one existing and one which will require some further work.

StandardMaterial

StandardMaterial can be used as a complete replacement, when using emissive texture slot with vertex format. It handles all features of the BasicMaterial (and many more), and generates code with very similar / same performance.
It is exposed in the Editor inspector / Editor workflow.
This should be the main replacement path for users not requiring custom modification.

ShaderMaterial

This is an under development material / shader system allowing users to use custom shaders, by providing a custom shader source code, which the engine implements or helps user to implement additional features. Main features / unfinished work:

When this is done, it will give users an option to create a custom look shader, which can be skinned, which will handle tone-mapping and fog and many other features, opening a way for custom looking applications (targeting mostly non-photorealistic games here)

I look forward to a feedback here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue feature request V2 Work for initial release of V2 engine
Projects
None yet
Development

No branches or pull requests

1 participant