0 votes

I want a glow/shine effect on an object and the WorldEnviroment node works perfect but if the object is out of the cameras view the glow/shine instantly disappears. This is logical because there is no object to add a glow/shine effect to but I want to have a shine even if the object is just a few pixels out of the cameras view because now it looks bad/buggy when the object moves out of the screen.

in Engine by (22 points)

1 Answer

0 votes

Correct, if objects don't produce pixels in the viewport, they won't glow even if that glow would have been visible. The same happens for various other screen-space effects, such as screen-space reflections which can't capture what is behind the camera.

For glow, that would be a feature request for a sort of viewport "margin" in which a wider portion of the view is drawn to achieve such effect.
A workaround would be to render the world on a render-texture viewport at a slightly higher width, size and field of view, and draw the result as a full-screen texture rect, but cropped to match the normal field of view.

by (27,902 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.