- Home /
Make light pass through object
I am trying to do a solar system simulation in unity 3D. I created the sun and added a point light component to it. The light works but it doesn't illuminate the sun itself:
So, how do I make the light illuminate the object it's attached to?
Answer by DripSta · Jul 25, 2020 at 03:44 PM
You can use the standard shader and enable the emissions, it even allows you to use a texture and apply it on the emission That should solve your problem
Answer by dorusoftware · Jul 24, 2020 at 08:52 PM
to the sun add a material that have emmisions, meaning it will be like a light, you can change the color to be yellow like the sun and also it will look bright and shiny in the scene.
I already tried that and it kinda works but when doing that it becomes a yellow sphere. I want it to have texture.
If you want like proper glow to the sun and for it to emit visible light, you can download the post processing stack from unity package manager and apply bloom effects to your sun.
Answer by MomkeyDev · Jul 25, 2020 at 02:03 PM
I don't know much about lightning so pardon if i got something wrong
you could use an emission shader which basically make an object to be bright and also illuminate other around it. one thing tho, emission shader is a baked light, which mean if you change the object position, it would not update in real time. i would just expect you to use the emission shader just to make the sun look bright. and then use the point light as a realtime light.
i never touched emission light before. so if you do wanna implement it, you can go to unity doc, and some brackey video.