Proper projection for SKY_COORDS to map texture
Asked Answered
B

2

0

Hello.
I have two panoramic textures that I am trying to combine at runtime to create a texture for sky box.
Either of them get mapped just fine when used in Panoramic Sky material, but when used in a sky shader both produce artifacts at the poles.

The code is (just one texture while figuring out the proper projection) as follows:

COLOR = texture(nebula_texture, SKY_COORDS).rgb;

What is missing in my set up?

EDIT Using Godot 4 Beta 3 (latest) -- the sky shader for the sky in world environment node (rather than panoramic material).

Bridgeman answered 16/10, 2022 at 20:49 Comment(0)
E
0

I'm not seeing that anywhere in the docs? What version of Godot are you using and what kind of shader are you running?

Emancipator answered 16/10, 2022 at 21:15 Comment(0)
B
0

Emancipator

Sorry about that, using Godot 4 Beta 3 (latest) -- the sky shader.

Bridgeman answered 16/10, 2022 at 21:30 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.