0 votes

Currently there is no "official" way to write a custom skybox shader (A planed feature for 4.0).

How would I go about doing it anyway? My current approach is creating a huge sphere MeshInstance and drawing on it with a ShaderMaterial. The problem is that I have to crank up the draw distance for the sphere to be shown, which only works as long as I don't have much in my level.

I found this suggestion, which seems overly complicated for my use case, since I don't want to draw anything 3D as the background, just some custom animated 2D shader.

Using the background mode "Canvas" does kinda work, but It always draws the same, independent of my camera orientation. Of course I could try to somehow pass my camera orientation into my shader, but that seems pretty hacky to me.

in Engine by (14 points)

Please log in or register to answer this question.

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.