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

Custom shaders & materials #98

Open
FredrikNoren opened this issue Feb 15, 2023 · 0 comments
Open

Custom shaders & materials #98

FredrikNoren opened this issue Feb 15, 2023 · 0 comments
Labels
enhancement New feature or request topic:rendering Rendering architecture and implementation

Comments

@FredrikNoren
Copy link
Contributor

FredrikNoren commented Feb 15, 2023

Currently the renderer supports custom shaders on two levels; renderer_shader and material_shader. The material_shader plugs into a renderer_shader, and only affects the fragment shader. The renderer_shader can take a material_shader, but it also "owns" the entire shader so it can do pretty much anything. There is also a "material" which is just plain data + textures, exposed as a bind group, which "fits" with the material_shader.

Some examples;

We'll have to figure out how to expose this on the api side.

@FredrikNoren FredrikNoren added enhancement New feature or request topic:rendering Rendering architecture and implementation labels Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic:rendering Rendering architecture and implementation
Projects
None yet
Development

No branches or pull requests

1 participant