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

Pass uniforms to custom shaders #226

Open
maniflames opened this issue Jun 9, 2019 · 1 comment
Open

Pass uniforms to custom shaders #226

maniflames opened this issue Jun 9, 2019 · 1 comment

Comments

@maniflames
Copy link

maniflames commented Jun 9, 2019

Thanks for all the hard work on this library! Right now I'm working on a small game and want to use custom shaders for post effects. Because of #58 and the documentation I got very basic one running (basically a reimplementation of the basic material). The only thing I'm struggling with right now is defining my own uniforms and passing them to the custom shaders.

Is there a way to do this with basic_pipeline and material::basic::Custom currently or would it be less of a hassle to fork three and modify renderer/mod.rs?

(I'm not entirely sure but this might be a duplicate of #174 if that is the case I'll close this issue and would love to chat over there 😄)

@kvark
Copy link
Collaborator

kvark commented Jun 10, 2019

Hi! Custom pipelines where pretty much rolled in because I needed them for plane_splitter. So they only contain as much functionality atm as I needed, and you'd need to expand it (in three-rs code) if that's not enough.

FYI, the crate is in maintenance state until it's ported to a new graphics backend, see #222

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

2 participants