Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by SaltyMeatBoy · Sep 09, 2015 at 11:02 PM · shaderlightingshadersparticles

How to make particles react to scene lighting

I'm trying to make a fog particle effect that lights up when I use a flashlight on it but is otherwise dark. I tried using the VertexLit Blended, bit it seems like if I try to render the particles as billboards while using this shader they only react to light from one side (i.e. they respond to a light when I'm on one side and remain dark if I try to shine a light on the opposite side). I'm really not sure what to do at this point, and I don't have any experience writing my own shaders.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by SaltyMeatBoy · Sep 10, 2015 at 12:03 AM

Well, after a little exploring, I found a fix to the problem myself. Basically, instead of using a "particle system," use a "particle emitter." This makes it so that the particles accept light from any angle. To anyone out there who was struggling with this like me, you're welcome.

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
0

Answer by Dismantler69 · Oct 20, 2015 at 07:27 AM

Thanks a lot, @SaltyMeatBoy! I was trying to make clouds, but they looked white even at night, so I turned to the community and found an answer immediately. Thanks again!

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
0

Answer by uchihaballs · Dec 27, 2017 at 03:18 PM

I know this is old, but what do you mean use "particle emitter" instead of "particle system"? Is that something that got removed? I really need the particles to receive light from any angle. Making a top down game with a flash light(spot light) that is supposed to light up particles, but since the camera is from above the and the light is 90 degrees away all particles are completely dark, which sucks.

Tried to edit the code of the new particle surface shader but can't. Adding that shader (so i can edit it) to the project causes unity to freeze. I have also tried copying the code into another shader and a bunch of stuff, but unity just freezes and the "unity shader compiler" and "chromium host" starts to use up all my CPU power until i forcebly quit Unity.

Anyone got any ideas?

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

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

Related Questions

Half Lambert / Wrap Diffuse Shader 0 Answers

Help with lighting on billboard shader 0 Answers

Need some assistance with spot/point lighting for GPU based particles 0 Answers

Particle System (Show particles more where the light is - Rain Falling for example) <- 0 Answers

Why is my point light breaking my sprite? 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