[Bf-blender-cvs] [0c01ad93004] master: Fix T74019 Eevee High Quality Normals causing pitch black faces

Clément Foucault noreply at git.blender.org
Thu Feb 20 00:13:57 CET 2020


Commit: 0c01ad93004d6d973aae718e21b88595d6301fd2
Author: Clément Foucault
Date:   Thu Feb 20 00:13:48 2020 +0100
Branches: master
https://developer.blender.org/rB0c01ad93004d6d973aae718e21b88595d6301fd2

Fix T74019 Eevee High Quality Normals causing pitch black faces

Was due to a mistake when removing previous code...

===================================================================

M	source/blender/draw/intern/draw_cache_extract_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c
index edd7dee004c..88cb3f95f2e 100644
--- a/source/blender/draw/intern/draw_cache_extract_mesh.c
+++ b/source/blender/draw/intern/draw_cache_extract_mesh.c
@@ -1839,8 +1839,8 @@ static const MeshExtract extract_uv = {
 
 static void extract_tan_ex(const MeshRenderData *mr, GPUVertBuf *vbo, const bool do_hq)
 {
-  GPUVertCompType comp_type = do_hq ? GPU_COMP_F32 : GPU_COMP_I10;
-  GPUVertFetchMode fetch_mode = do_hq ? GPU_FETCH_FLOAT : GPU_FETCH_INT_TO_FLOAT_UNIT;
+  GPUVertCompType comp_type = do_hq ? GPU_COMP_I16 : GPU_COMP_I10;
+  GPUVertFetchMode fetch_mode = GPU_FETCH_INT_TO_FLOAT_UNIT;
 
   GPUVertFormat format = {0};
   GPU_vertformat_deinterleave(&format);



More information about the Bf-blender-cvs mailing list