Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by YossiWF · Apr 22, 2015 at 09:22 PM · shadermobilelightmapglobal illuminationunlit

What shaders would you recommend using for static, GI-baked lightmapped objects when targeting mobile with Unity 5?

I'm trying to light a scene for mobile using a baked GI lightmap in Unity 5 and having trouble figuring out which of the built-in shaders to use.

(I guess in an ideal world I would just select the Standard shader and go, but this -- http://forum.unity3d.com/threads/new-standard-shader-performs-weakly-on-android.283386/ -- seems to indicate that the standard shader isn't very performant on mobile.)

In my scene:

  • Some of my objects just have diffuse texture maps.

  • Some of my objects have diffuse texture maps and normal maps. (I don't want those normal maps to be used at runtime, but I do want them to be accounted for in the lightmap generation.)

  • Some of my objects don't have any texture maps at all and just use material color.

  • Some of my objects have diffuse texture maps and are further tinted by the material color.

(I know that those last two are a bad idea on mobile, and I'm planning on optimizing them out later, but I'm still curious about the answer to this question in terms of those two classes of material.)

So—what's the right shader to choose when generating materials for each of these types of objects to get me the best-looking lightmap but to incur the least performance when rendering the objects on mobile?

I guess the thing that's confusing me most is this: I think the lightmapping system requires a shader that supports lighting in order to light an object properly in the map. (Objects with "unlit" shaders came out really weird-looking in my test bake.) But when I'm running a game on mobile, I'm pretty sure that I want to use shaders that don't support real-time lighting at all to make sure that the my game is running as well as it can.

Are there shaders that basically say "this material should be lit during the lightmap bake but completely unlit and use only the baked lightmap at runtime?"

Thanks in advance!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Mobile shaders with baked lighting - is there difference in performance 0 Answers

Is there a way to Separate the light contribution from the shadow? 0 Answers

Mobile Diffuse Shader with transparent support and Lightmap support 0 Answers

bake (?) the moving object 1 Answer

Custom lightmaps? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges