ncannasse / hxsl

Haxe Shader Language, a high level 3D shader language for Haxe
86 stars 10 forks source link

bind multi vertexbuffer instance #5

Closed dwzzz closed 11 years ago

dwzzz commented 11 years ago

It seems I have to combine all vertexbuffer to one,and call shader.bind(buf)?

How I wish I could do this: shader.bind(buf1,buf2,buf3)...

ncannasse commented 11 years ago

I have added a "bind" in hxsl v2 Shader, you can easily modify it to use multiple buffers in your engine (all the required info are now easily accessible though getInstance())