Little help with shaders


#1

Trying to experiment with shaders for a while.
I managed to pass uniform values to the fragment shader.
Like this:

shader.data.alpha.value = [ 0.5 ];

But i cant pass any samplers into the shader. How do i pass a bitmapdata into it? Trying to pass a normal map into it but with no luck.


#2

There was a bug in having multiple BitmapData texture inputs, which is fixed on GIT now :slight_smile: