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 davidwalmsley · Nov 26, 2014 at 01:41 AM · lightingshadersgrasstransparent shaderlow poly

Best way to light grass?

I am just getting started messing around with different ways to make good looking foliage for nature scenes. My problem is that I can't get the light to hit the grass I've created to match the lighting for the ground under it. The method I've landed on (for performance reasons) is making plane with a transparent mesh on it, and duplicating it for the other side. It works great for the trees, but trying to apply it to grass isn't working out as well. The problem is that the light hits the ground differently than the grass and it makes the place where the grass and ground meet very noticeable. I can fool with the shaders and get one side looking right, but the other side is always too light or too dark.

Heres some pics if it will help (sorry the images are so dark):

alt text

^ This is where the grass looks wrong. You can see the definite place where the grass and the ground meet.

alt text

^ This one looks right, but I can't seem to make it match consistently.

The issue Im having is that the light hitting the ground doesn't hit the grass in the same way because there is such a difference in the angle of the two. I am wondering if there is way to throw the light on the grass so the whole is lit from the top instead its actual angle, or if theres a way to make it match the ground better. I can't be the only one to have run into this problem, if anyone has any advice I would be very grateful. Basically I want the grass to be almost unnoticeable unless there is something behind that is different, like a stone path or the character or a building. Also, it has to be using a transparent shader.

Thanks.

grassb.jpg (5.2 kB)
grass-a.jpg (4.8 kB)
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

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

Related Questions

In a shader designed for Forward rendering, unity_Lightmap seems to be correct in the base pass and incorrect in the add pass. Am I doing something wrong or is this a bug? 0 Answers

Unity URP black outline on my mesh polygons 0 Answers

Can you get how much light is on the surface in a shader? 0 Answers

Help with Shader that blends between two textures based on light 0 Answers

Toon shader light culling shadow issue 0 Answers


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