Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple texture usage in hxsl #31

Open
davyzhang opened this issue Mar 11, 2014 · 0 comments
Open

multiple texture usage in hxsl #31

davyzhang opened this issue Mar 11, 2014 · 0 comments

Comments

@davyzhang
Copy link

I write fragment func like this
function fragment(tex0:Texture, tex1:Texture, tex2:Texture, tex3:Texture)

but the problem is I don't the exact number of textures will used here

currently I uploaded 8 tex with some empty bitmapdata textures

but in agal I can dynamically make the agal opcode string to achieve this
for (var x:int;i < textureCount;i++){
"tex " + ftColor + "," + + "," + fsList[i] + "<2d,repeat,miplinear,linear>",
}

The thing I wanna achieve is similar like this:
http://blog.flash-core.com/?p=493

here's the google group thread
https://groups.google.com/forum/#!topic/haxelang/CF4ibEta5x4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant