Author Topic: Multiply blend mode for sprite  (Read 5560 times)

StridingDragon

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 53
    • View Profile
Multiply blend mode for sprite
« on: April 24, 2013, 12:50:54 AM »
I am wondering if it is possible for me to draw a sprite using a different blend mode/shader than the standard alpha blending. I want to print a panel using a "multiply" mode but I can't figure out how to do it. I understand that I will most likely have to build a separate atlas for that panel to force a separate draw call, but I can't seem to find a way to assign a shader to the sprite. Could anyone tell me how to do this, please?

Thanks so much!

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Re: Multiply blend mode for sprite
« Reply #1 on: April 24, 2013, 04:03:16 AM »
Just go to the panel and select the material that is used for that atlas. Then you can change the shader on that material to what ever you like.
Caution: That is changing the shader for all the panels that are using this Alas. You maybe like to create a new atlas with the sprites that should have a new Shader.

StridingDragon

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 53
    • View Profile
Re: Multiply blend mode for sprite
« Reply #2 on: April 24, 2013, 04:54:57 PM »
Thanks a bunch. That did it. :-)