How to pass a uniform sampler2D (texture) to a shader program on HTML5?

How to pass a uniform sampler2D (texture) to a shader program on HTML5?
0.0 0

#1

Hi all,

I’m referring to this question:

Seems like there are a few posts on the same question against cocos2d-js, but no answers yet. :frowning:


Can any one share solutions if they have overcome this problem before?