Author Topic: LightMap NGUI Atlases  (Read 4877 times)

ds_2051

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
LightMap NGUI Atlases
« on: August 19, 2013, 05:23:03 AM »
Hi,

My game is suffering from inconsistent device brightness.
Hence in order to resolve the issue i created unity light-mapping of 3d model textures.But unity couldn't bake light into ngui atlases/widgets as there is no mesh renderer.

Can somebody advice how light-mapping can be achieved on Ngui widgets?

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: LightMap NGUI Atlases
« Reply #1 on: August 19, 2013, 08:55:24 AM »
Why don't you just write a shader that will brighten the color inside, instead of having a light map?

ds_2051

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: LightMap NGUI Atlases
« Reply #2 on: August 19, 2013, 11:22:06 AM »
Thanks Aren for the suggestion.

But unfortunately i don't know shader coding. :o
What type of shader can work with Ngui to achieve high brightness.So that i can search the asset store and buy to achieve the results.

Cheers :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: LightMap NGUI Atlases
« Reply #3 on: August 19, 2013, 09:46:27 PM »
NGUI comes with a set of shaders of its own. To brighten something, the easiest thing you can do is multiply the color within the surface shader. I can't help you with writing shaders, however. That's a question on how to use Unity, not NGUI.

ds_2051

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: LightMap NGUI Atlases
« Reply #4 on: August 20, 2013, 02:26:27 AM »
Ya Aren i totally understand and thnks for suggestion of shaders to solve problem.
Already got some shaders from store and now NGUI panels are looking awesssooome ;D

Cheers to u for creating such a nice product and support :)