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
0
Question by Xtro · Jul 18, 2013 at 03:16 PM · shaderlightmapforwardbump

Yet Another Forward Rendering, Lightmap and Bump shader question

Hi,

I have been trying to make this thing work for many days and failed. So, I'm joining the army of people who has the same question on all over internet and has no anser...

When I get home, I can add my own shader code here but basically I'm suffering the same problem with this guy : http://gamedev.stackexchange.com/questions/20435/how-can-i-use-the-dualforward-parameter-in-my-unity-shader-to-use-lightmaps-and

I am importing the built-in bump reflective shader to my project and I'm adding "dualforward" into it. After a few modification to make it compilable (like shader version 3.0 or something...), I can see the bump effect with reflective surface. But lightmap (baked shadows) gets disabled :( :( Same thing happens on my terrain shader when I add dualforward to it.

I'm using Unity4, forward rendering, bake mode is dual with "use in forward" checked. I hope, after so many people searching for the same thing for many years, someone here has the real answer...

And NO! I can't use deferred lighting because our target is mobile platform.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Xtro · Aug 08, 2013 at 02:46 AM

Answering my own question after gaining alot experience with the topic.

It's possible to write some custom shaders to enable this scenario (Forward + Lightmap + Bump) but it's very complex and hard to succeed. In our project we gave up the idea of havinh such features all together on mobile version of the game.

But luckily, Unity4.2 just come out and they started to support deferred render mode on some mobile platforms. On my ipad, I'm able to see those features all together. Dynamic spotlight shadows are also working on ipad. That's an amazing thing.

Se we didn't solve the problem. Unity did in 4.2 :)

Comment
Add comment · Share
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

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

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Exactly how to use _TransparencyLM for lightmaps with transparent shaders - BUILD issues 1 Answer

Emissive shaders not working 0 Answers

Materials showing up black on non-static objects 0 Answers

Directional lightmap in custom shader. 1 Answer

Loaded Lightmaps Clearing On Play 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