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 Twilight-Studios · May 05, 2016 at 09:11 PM · shaderspriteslightemissive

Light from Emissive Materials/Objects on Sprites

Hi, im working on a 2.5 Sidescroller and using sprites for the background. However I managed to get the lighting effect on a sprite from point lights. My problem is that I can´t get the light on a sprite from a Emissive Material/Object.

Is this even possible? And when yes how? My Objects are Static. And I'm using the Sprite Diffuse Shader.

This is the Sprite with Point Light ( another room ). alt text This is the Sprite where the Emissive Material/Object is placed. alt text

Thanks in advance :)

point-light.jpg (10.4 kB)
emissive-light.jpg (18.3 kB)
Comment
Add comment · Show 4
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 Namey5 · May 07, 2016 at 02:08 AM 0
Share

If I understand what you mean, you can only achieve global emission through baking on static objects. If you can do this with sprites, it probably wont look right, as it would only be projecting light from all 'sides'.

avatar image Twilight-Studios Namey5 · May 07, 2016 at 02:11 PM 0
Share

But how I archive to get the green light on the sprites?

avatar image Namey5 Twilight-Studios · May 08, 2016 at 12:10 AM 0
Share

What exactly do you mean?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Namey5 · May 08, 2016 at 10:15 AM

I've looked into it further, and basically; no. You can, however, have it as a quad using the standard shader with fade transparency. It will look the same and interact with lighting better. If you want it to cast and receive shadows, cutout works as well.

Comment
Add comment · Show 4 · 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 Twilight-Studios · May 09, 2016 at 12:36 PM 0
Share

What do you mean with "and basically no" ? does it not work with sprites?

to recap my problem here: you see I'm using a green Point Light source works great: alt text

But with my Emissive Object here it does not work: alt text

I tried different Shader, but nothing seems to work.

sprite-pointlight.jpg (44.9 kB)
sprite-emissivelight.jpg (78.3 kB)
avatar image Namey5 Twilight-Studios · May 09, 2016 at 09:13 PM 0
Share

I posted this as an answer because that's what it is. You can't have baked emission on sprites.

avatar image Twilight-Studios Namey5 · May 09, 2016 at 09:19 PM 0
Share

ok thx, and with baked emission you mean my green cube right?

Show more comments

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

74 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 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 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

Standard Shader Emissive Warning? 2 Answers

Proper working atmosphere shader in Unity 2018. 1 Answer

apply lighting to custom shader made in shader graph? 0 Answers

Using Sprite As Mask For Shader 0 Answers

How do I outline sprites hidden behind another 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