Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | tom_mio |
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 :
Expected result :
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 :).