Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-02-21 08:24:30 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-02-21 08:24:30 +0400
commit88a2be1846d3cdca5c0a0f0dc68baad933a9f680 (patch)
tree232c1fa6420619f3da44853eb814059cbb9e3596 /source/blender/gpu/GPU_buffers.h
parenta6dc47b0cae6bde63dfb3ec77cdae2d77a3e8b26 (diff)
Another fix for non-VBO flat-shading in sculpt mode, this time for non-multires meshes.
As with multires, this change calculates face normals rather than using vertex normals when the node is flat-shaded. Flat-shading with VBO on non-multires meshes is still wrong, but fixing that would require larger changes to our vertex buffers.
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r--source/blender/gpu/GPU_buffers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h
index 945b9d819ef..5c567c31163 100644
--- a/source/blender/gpu/GPU_buffers.h
+++ b/source/blender/gpu/GPU_buffers.h
@@ -163,7 +163,7 @@ GPU_Buffers *GPU_build_mesh_buffers(struct GHash *map,
struct MFace *mface, int *face_indices,
int totface, int uniq_verts);
void GPU_update_mesh_buffers(GPU_Buffers *buffers, struct MVert *mvert,
- int *vert_indices, int totvert);
+ int *vert_indices, int totvert, int smooth);
GPU_Buffers *GPU_build_grid_buffers(struct DMGridData **grids,
int *grid_indices, int totgrid, int gridsize);
void GPU_update_grid_buffers(GPU_Buffers *buffers, struct DMGridData **grids,