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 Bruce_GMC · May 30, 2015 at 04:51 PM · unity 5shaderlightmapping

Unity 5 bug standard cutout shader and light mapping

I first noticed this when I created a test scene to figure out settings for light mapping much bigger scenes. I have a shader forge shader and I couldn't figure out why I couldn't get a shadow made for these objects. It turned out that when opacity clip is enabled with a differed shader the shadows wont render in to the light map.

I looked at the standard shader in unity and started changing the rendering modes and built light maps for each mode. The cutout rendering mode also does not render shadows to the light map.

I have explored everything I can think of, how am I going render light maps for cutout blades of grass?

Im using 5.0.1f1

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by 8bit4life · Jul 28, 2015 at 06:24 PM

Did you find a solution to this?

An object with a cutout shader that worked on 4.6 vs baked lightmaps has no lights baked on it in Unity 5.1 (latest). Not even from emissive lights emitted by itself. All other objects around it receive all lights, including the emission from this cutout object. I migrated towards the Standard Shader for cutout / backed, but still no joy.

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
avatar image
1

Answer by Bruce_GMC · Jul 29, 2015 at 12:34 AM

Further testing proved that Unity's shader is not at fault, the faulted logic is ShaderForge's. By setting the standard shader to cutout you can receive the correct cast shadow in the lightmap. By using this lightmap you may be able to apply it over top a custom shader. My example shows the purple grass with the standard shader applied that can be seen on the left. The green grass is the shaderforge shader. Cheers and good luck. alt text


temp2.jpg (431.6 kB)
Comment
Add comment · Show 2 · 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
avatar image 8bit4life · Jul 29, 2015 at 09:10 AM 0
Share

Thanks Bruce, greatly appreciated. I think my issue is different then (as I'm using the standard shader already).

avatar image 8bit4life · Jul 30, 2015 at 10:22 AM 0
Share

For those with similar issues: I created a thread with screenshots / scene archive that demonstrates the issue. http://forum.unity3d.com/threads/cutout-material-wont-let-baked-emission-through-itself.344449/

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

Replacing lightmap shader pass 0 Answers

Reflections not working on IOS 2 Answers

How to use the Unity 5 Transparent Shader? 1 Answer

Objects Not Visible In Low End Computer. (Shader Error) 1 Answer

Read depth buffer on the cpu 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