|
normal.xy = texture(sampler2D(normal_texture, texture_sampler), uv).xy * vec2(2.0, -2.0) - vec2(1.0, -1.0);
|
|
normal.xy = texture(sampler2D(normal_texture, texture_sampler), uv).xy * vec2(2.0, -2.0) - vec2(1.0, -1.0);
|
|
normal.z = sqrt(1.0 - dot(normal.xy, normal.xy));
|
|
normal.z = sqrt(1.0 - dot(normal.xy, normal.xy));
|