Reputation: 103
I am making a mirror, but there's a problem. The color is far different in the texture than in the subviewport I used in the texture.
On the bottom in Refl Tx, is what the subviewport looks like.
But at the top is what it looks like as a texture.
I have messed around with many settings but couldn't find a solution.
This is the shader code:
shader_type spatial;
render_mode unshaded;
uniform sampler2D refl_tx;
void fragment(){
ALBEDO = texture(refl_tx, vec2(1.0 - SCREEN_UV.x, SCREEN_UV.y)).rgb;
}
Upvotes: 0
Views: 709
Reputation: 21
Add a source_color
hint after your texture declaration.
uniform sampler2D refl_tx : source color;
Upvotes: 2