Shader passes
#2438
Replies: 1 comment 1 reply
-
Have a read of this post, and if it is related to what you're trying to achieve, then the updated demo code for Axmol can be found here: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to convert a project from Cocos Creator to Axmol, in that project I did create a shader with two render pass.
On first pass I did modify the verts and draw a shadow of my sprite, on the second pass I did apply normal and lights.
Is there a way to do the same on Axmol? How can I have a multiple pass shader?
Reading the documentation I saw "Please only write 1 uniform block per shader stage. Multi-uniform blocks are not implemented in the Metal backend."
What do you mean by shader stage?
Beta Was this translation helpful? Give feedback.
All reactions