Author Topic: How to use a custom shader only on a Sprite and not on an atlas?  (Read 2259 times)

JeanLouis-GAE

  • Guest
How to use a custom shader only on a Sprite and not on an atlas?
« on: December 22, 2012, 10:20:12 AM »
Hello, i wish blend or combine several sprites objects on an single sprite, how can i do this with a custom shader. I know do the shader but i have not idea for How use it on only a selection of NGui Sprite in order to combine or blend them. All materials and shaders in the stock seems be linked to an Atlas.

If you could orient me in the right direction?

Thank you very much.

  :'( Please Help Me  :'(
« Last Edit: December 22, 2012, 04:32:03 PM by JeanLouis-GAE »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: How to use a custom shader only on a Sprite and not on an atlas?
« Reply #1 on: December 22, 2012, 09:07:12 PM »
Well, essentially you can't as far as I know. You might be able to do it with a UITexture, where you can define your material yourself.

Otherwise, take a look at how the Panel makes a UIDrawCall and see what it's actually doing, if you want to mess with your own shader.

JeanLouis-GAE

  • Guest
Re: How to use a custom shader only on a Sprite and not on an atlas?
« Reply #2 on: December 23, 2012, 02:58:24 PM »
Ok thank you for the reply, hum, i will search to the panel side and the UITexture such as you suggest   ;)