bc5 normal maps
This commit is contained in:
@@ -21,7 +21,7 @@ layout(location = 3) in mat3 tbn;
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
void main() {
|
||||
vec3 normal_cam_u = texture(normal_tex, tex_coords).rgb;
|
||||
vec3 normal_cam_u = vec3(texture(normal_tex, tex_coords).rg, 1.0);
|
||||
normal_cam_u = normal_cam_u * 2.0 - 1.0;
|
||||
normal_cam_u = normalize(tbn * normal_cam_u);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user