Godot Version
4.6.1
Question
Hello i am makekin a game where mirror are a main elemen
I already did vertical mirror effect following tutorials
but I need horizontal mirror effect where mirror player movement is reverse for actually player
sorry for my bad english
I try switch x and y and change code to reverse
But only two thing happened
1 is that it switch mirror effect to side
2 is stay Norman but Little up the original
void fragment() {
vec2 uv = UV + nopeus * TIME;
vec2 aani = texture(nopee_aani, uv).rg;
float uv_koko = (SCREEN_PIXEL_SIZE.x / TEXTURE_PIXEL_SIZE.x);
vec2 x_Heijastuksia_uv = vec2(SCREEN_UV.x, SCREEN_UV.y - (uv_koko * UV.x * scale_x * x_zoom));
vec4 Heijastuksia = texture(SCREEN_TEXTURE, x_Heijastuksia_uv);
vec4 aalto = texture(SCREEN_TEXTURE, x_Heijastuksia_uv + aani * x_zoom * (aaltojen_voima / 100.0));
COLOR = Heijastuksia + aalto + CAST_color;
}