Skip to content

adding new uniforms for custom shaders #71

Answered by asny
kklibo asked this question in Q&A
Discussion options

You must be logged in to vote

That is a big yes. I have made sure that you can always combine the high and low level features so you are not constrained in any way. In your case it is as simple as calling the methods starting with use_uniform on MeshProgram, so if you want to send a float, use the use_uniform_float. This functionality is really part of Program but MeshProgram derefs to Program so you have the same functionality.
Note I renamed the use_uniform functionality in a recent commit to make it consistent, otherwise it is called add_uniform.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kklibo
Comment options

@asny
Comment options

asny Mar 10, 2021
Maintainer

Answer selected by asny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants