From a96da42a7c1232dee986e1f658ee34440f78ac6c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 26 Nov 2010 14:46:07 +0000 Subject: Corrected patch normals and vertex unwinding order, draw smaller normals with r_normalize 1. --- src/render/draw.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/render') diff --git a/src/render/draw.cc b/src/render/draw.cc index 79daffd..6e60f86 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -532,9 +532,10 @@ void draw_fragment(const model::Fragment *fragment, bool draw_details) gl::begin(gl::Lines); gl::color(1.0f, 0.0f, 0.0f); - + const float s = 0.01f; + for (size_t i = 0; i < vertex_count; i++) { - const float s = 0.25f; + const float *n = &core::game()->vertexarray()->ptr()[(index+i) * 8 + 2]; const float *v = &core::game()->vertexarray()->ptr()[(index+i) * 8 + 5]; -- cgit v1.2.3