![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ONION-777 |
I need to apply this shader: (2D wind sway - Godot Shaders) to sprite3d
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ONION-777 |
I need to apply this shader: (2D wind sway - Godot Shaders) to sprite3d
![]() |
Reply From: | Wakatta |
You can use a Sprite3D too but MeshInstance is better
in the shader
shader_type canvas_item;
to shader_type spatial;
render_mode blend_mix;
to render_mode blend_mix, unshaded;
uniform sampler2D albedo_texture : hint_albedo;
.
void fragment() {
vec4 result = texture(albedo_texture, UV);
ALBEDO = result.rgb;
ALPHA = result.a;
}