-
Notifications
You must be signed in to change notification settings - Fork 4
Shaders
Ajgamerteam edited this page Oct 28, 2023
·
3 revisions
-
Outline shader: https://godotshaders.com/shader/2d-outline-inline/
-
Normal as albedo color shader :
uniform sampler2D normal_roughness_texture : hint_normal_roughness_texture, repeat_disable, filter_nearest;
void fragment() { float screen_roughness = texture(normal_roughness_texture, SCREEN_UV).w; vec3 screen_normal = texture(normal_roughness_texture, SCREEN_UV).xyz; screen_normal = screen_normal * 2.0 - 1.0;