+1 vote

I'm following the wiki tutorial using viewport as texture to texture a sphere seamlessly.

But at this point I have a different result from what is show on the tutorial :

enter image description here

Expected result :

enter image description here

Here's the viewport ColorRect's shader code:

shader_type canvas_item;

void fragment() {
    COLOR = vec4(UV.x, UV.y, 0.5, 1.0);
    COLOR.xyz = vec3(sin(UV.x * 3.14159 * 4.0) * cos(UV.y * 3.14159 * 4.0) * 0.5 + 0.5);

Would really appreciate if someone could tell me what I'm doing wrong :).

Godot version 3.2
in Engine by (13 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 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 webm[email protected] with your username.