diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-21 03:00:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-21 03:00:45 +0000 |
commit | 7da4243862494d1fc7478956362f4da6d80f4f7e (patch) | |
tree | 30922972d98c2056ecbed0a1c43b3b3a3758bf58 /graphics/asymptote/bezierpatch.cc | |
parent | 8fa38617045e3aa88b163fdc2fd683d72559b6d5 (diff) |
CTAN sync 201910210300
Diffstat (limited to 'graphics/asymptote/bezierpatch.cc')
-rw-r--r-- | graphics/asymptote/bezierpatch.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/asymptote/bezierpatch.cc b/graphics/asymptote/bezierpatch.cc index 8f7c607c2a..2549e75934 100644 --- a/graphics/asymptote/bezierpatch.cc +++ b/graphics/asymptote/bezierpatch.cc @@ -820,9 +820,12 @@ void transform(const std::vector<VertexData>& b) // ybuffer.resize(n); zbuffer.resize(n); + double Tz0=gl::dView[2]; + double Tz1=gl::dView[6]; + double Tz2=gl::dView[10]; for(unsigned i=0; i < n; ++i) { const GLfloat *v=b[i].position; - zbuffer[i]=TransformZ(triple(v[0],v[1],v[2]),gl::dprojView); + zbuffer[i]=Tz0*v[0]+Tz1*v[1]+Tz2*v[2]; } } |