Mercurial > octave-nkf
view .hgsub @ 18133:647d806868ee
Color patch face based upon first vertex (bug #40247).
* gl-render.cc (opengl_renderer::patch_tesselator::vertex): Only set per-vertex
color if "interp" is set. Use GL_DIFFUSE when setting diffuse lighting (was
inccorrectly GL_AMBIENT).
* gl-render.cc (draw_patch): If using "flat" shading and no "facecolor"
specified then choose the color from the first vertex.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 13 Dec 2013 22:35:31 -0800 |
parents | 44f30dcd87e0 |
children |