Skip to content

Pass uniforms to custom shaders #226

@maniflames

Description

@maniflames

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 😄)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions