We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
I had recently viewed this video: Coding Challenge #9: Solar System in Processing - Part 3 (3D textures)
At 10:30s of this video, shiffman wants to create a effect like sunlight using pointLight at the position same as the sun sphere. The sun effect is done, but sun itself is darken. An there is no next video about Solar System in Processing which gives a solution. Can anybody help me how to create a sunlight effect?
Source code about this video: https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_09_SolarSystemGenerator3D_texture
pointLight inside the sun:
pointLight inside the sun + ambientLight: (not perfect effect):
Answers
pointlight in the sun, draw all the planets. Then ambient light, and draw the sun.