You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to render one object with one shader program, and another with a different program, and I'm running into the issue that all the programs used in a FrameCmd have to have the same uniform parameter thing.
I can only see a couple of ways to do what I want:
For each program render its objects into a separate framebuffer and then render this onto the default framebuffer (introducing another shader to be able to handle depth etc.).
Make the uniform parameter thing a sum type and use the same type for all of my programs
The first is cumbersome, but the second is workable (though messy). Is there a better way to do what I want? Maybe the answer lies somewhere in the typeclass instances of your types.
The text was updated successfully, but these errors were encountered:
I'm trying to render one object with one shader program, and another with a different program, and I'm running into the issue that all the programs used in a
FrameCmd
have to have the same uniform parameter thing.I can only see a couple of ways to do what I want:
The first is cumbersome, but the second is workable (though messy). Is there a better way to do what I want? Maybe the answer lies somewhere in the typeclass instances of your types.
The text was updated successfully, but these errors were encountered: