Hi everyone,
how do I do a sun that gets bigger when its more toward center of the screen??
I tried everything with shaders but i simply cannot do it..
Sun that Expands?
i don't know how to get node position on screen, but you could use getRayFromScreenCoordinates() or camera->getTarget(), then compare make vertex that is in same distance as sun and then compare it's distance to it. i mean like this:
i guess it's not the most efficient way to do this, but it's just idea
also, maybe this could help:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=31365
Code: Select all
center
------ sun
| /
| /
| /
|/
camera
also, maybe this could help:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=31365