Skip to content

Shaders

Ajgamerteam edited this page Oct 28, 2023 · 3 revisions

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;

Clone this wiki locally