Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAlanWu

Posted 09 December 2012 - 07:39 PM


We know put all the vertices together and call drawXXX() can draw all the triangles.
But if each triangles have different ,what should i do?DX9 doesn't has texture array.
And if we use pixel shader ,i know use pixel shader can sample texture.But pixel shader 2.0 only has 16 sampler.
I think it is use for multiple texture.But how to pass texture into pixel shader?Could anybody give me a example or a idea?
Thank you!


diffrent...? i'm guessing you mean textures. if so, you could alternatively create a super texture of all the sprites, and adjust the uv's of the object's appropriately.

yes,you are right,i have changed it just now.
thank you!

#1AlanWu

Posted 09 December 2012 - 07:37 PM


We know put all the vertices together and call drawXXX() can draw all the triangles.
But if each triangles have different ,what should i do?DX9 doesn't has texture array.
And if we use pixel shader ,i know use pixel shader can sample texture.But pixel shader 2.0 only has 16 sampler.
I think it is use for multiple texture.But how to pass texture into pixel shader?Could anybody give me a example or a idea?
Thank you!


diffrent...? i'm guessing you mean textures. if so, you could alternatively create a super texture of all the sprites, and adjust the uv's of the object's appropriately.

yes,you are right,i have changed it just now.

PARTNERS