Shader UV
Asked Answered
D

2

0


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.

Darrick answered 18/6, 2022 at 14:1 Comment(0)
C
0

You would use textureProj:

ALBEDO = textureProj(texture, VERTEX).rgb;
Crain answered 18/6, 2022 at 14:40 Comment(0)
D
0

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;
}
Darrick answered 18/6, 2022 at 15:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.