This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes
i download this project.

sky.shader seems to contain cloud code by glse
But there are some things I don't understand

1:Which node attached the sky.shader?
enter image description here

2:Is it possible to do the same with visual shader? glse looks difficult

sorry please tell me.

in Engine by (203 points)

1 Answer

+1 vote

Ok fortunately for you I actually played with that project before. For a beginner I believe the setup is a little complex though. The shader is supposed to be inside of a ShaderMaterial which is used by a ColorRect which is a child of a Viewport.
The viewport's texture is then put into a WorldEnvironment to be used as a panorama.

Ok, so in a little more detail the WorldEnvironment node is used to override the default environment. It has a parameter where you can setup a panoramic image to be used as a skybox. That's where the Viewport and ColorRect come in. The viewport allows you to render stuff into a texture. BTW it's parameter own_world must be set to true. And the color text acts as a canvas for the viewport to capture.

...Yep I still can't explain very well.

by (3,938 points)

Thank you
Is the colorrect the worldEnvironment panoramasky?
I couldn't find it.

I'm so sorry. I meant Sprite. This project uses a Sprite node as a canvas that the viewport captures.

This is outputting an image to the viewport
Thank you

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 Frequently asked questions and 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 [email protected] with your username.