How can I get this effect in Godot using a shader on a plane mesh?
I'm sure this is pretty simple but I cannot get my head around it.
From Blender:
Incoming:
Vector pointing towards the point the shading point is being viewed from.
How can I get this effect in Godot using a shader on a plane mesh?
I'm sure this is pretty simple but I cannot get my head around it.
From Blender:
Incoming:
Vector pointing towards the point the shading point is being viewed from.
You would use textureProj
:
ALBEDO = textureProj(texture, VERTEX).rgb;
Crain
I tried it but now its like a static ui texture.
You mean like this?:
shader_type spatial;
uniform sampler2D noise;
void fragment() {
ALBEDO = textureProj(noise, VERTEX).rgb;
}
© 2022 - 2024 — McMap. All rights reserved.