Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halo with ocean background #12

Open
superamble opened this issue Feb 7, 2019 · 3 comments
Open

Halo with ocean background #12

superamble opened this issue Feb 7, 2019 · 3 comments

Comments

@superamble
Copy link

I am trying to create halo to my lights but they are not rendered when the background is the ocean.
Is there something that I can do?

@AllCapsIndustries
Copy link

AllCapsIndustries commented Feb 9, 2019

The fast and dirty way around this it to change the RenderQueue setting of your ocean to 2500 or lower. This might have some adverse effects. I don't know the code well enough right now to say for sure.

Better still might be accessing the renderQueue property of the halo or the light it's attached to. If that's possible I'm not sure how it can be done. Halo is a Behaviour as opposed to a Component, which makes it strange to start with.

You can start the process with "Behaviour halo = (Behaviour) GetComponent ("Halo");" however "halo.GetComponent ()" will fail every time. Either there isn't one or it's not accessible that way.

Changing the renderQueue of a halo (or light?) might be a good question for the Unity forums if a deep search doesn't turn up an answer.

@superamble
Copy link
Author

Great suggestion
I changed the ocean RenderQueue to 2000 (it was 2500), I can see the halo and everything seems to works fine.
Thank you so much

@AllCapsIndustries
Copy link

Happy I could help! Interesting that you had to lower your RenderQueue setting more than I did. Tempting to wonder where that difference lies, but since you've got your result without side effects, I wont.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants