diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-19 00:04:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-19 00:04:10 +0000 |
commit | e0f7e24187626cc11a2dfdb9f9e22660f0b536a9 (patch) | |
tree | f16e903dd2fec2384f96e1b73f74c6cd4a948dc0 /Build/source/utils/asymptote/drawsurface.cc | |
parent | 0f1deee61c0b9018ed89701f331c2456d43c47fe (diff) |
asy 2.61 sources
git-svn-id: svn://tug.org/texlive/trunk@52856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawsurface.cc')
-rw-r--r-- | Build/source/utils/asymptote/drawsurface.cc | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Build/source/utils/asymptote/drawsurface.cc b/Build/source/utils/asymptote/drawsurface.cc index c8a154f79a8..b2a2de61738 100644 --- a/Build/source/utils/asymptote/drawsurface.cc +++ b/Build/source/utils/asymptote/drawsurface.cc @@ -257,6 +257,17 @@ void drawBezierPatch::render(double size2, const triple& b, const triple& B, transparent=colors ? colors[0].A+colors[1].A+colors[2].A+colors[3].A < 4.0 : diffuse.A < 1.0; + setcolors(colors,diffuse,emissive,specular,shininess,metallic,fresnel0); + + if(transparent) + setMaterial(transparentData,drawTransparent); + else { + if(colors) + setMaterial(colorData,drawColor); + else + setMaterial(materialData,drawMaterial); + } + bool offscreen; if(billboard) { drawElement::centerIndex=centerIndex; @@ -271,17 +282,6 @@ void drawBezierPatch::render(double size2, const triple& b, const triple& B, return; } - setcolors(colors,diffuse,emissive,specular,shininess,metallic,fresnel0); - - if(transparent) - setMaterial(transparentData,drawTransparent); - else { - if(colors) - setMaterial(colorData,drawColor); - else - setMaterial(materialData,drawMaterial); - } - triple *Controls; triple Controls0[16]; if(billboard) { @@ -498,6 +498,17 @@ void drawBezierTriangle::render(double size2, const triple& b, const triple& B, transparent=colors ? colors[0].A+colors[1].A+colors[2].A < 3.0 : diffuse.A < 1.0; + setcolors(colors,diffuse,emissive,specular,shininess,metallic,fresnel0); + + if(transparent) + setMaterial(transparentData,drawTransparent); + else { + if(colors) + setMaterial(colorData,drawColor); + else + setMaterial(materialData,drawMaterial); + } + bool offscreen; if(billboard) { drawElement::centerIndex=centerIndex; @@ -512,17 +523,6 @@ void drawBezierTriangle::render(double size2, const triple& b, const triple& B, return; } - setcolors(colors,diffuse,emissive,specular,shininess,metallic,fresnel0); - - if(transparent) - setMaterial(transparentData,drawTransparent); - else { - if(colors) - setMaterial(colorData,drawColor); - else - setMaterial(materialData,drawMaterial); - } - triple *Controls; triple Controls0[10]; if(billboard) { |