summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/three_light.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-03 22:35:09 +0000
committerKarl Berry <karl@freefriends.org>2020-03-03 22:35:09 +0000
commitf6bb2b5974c9dc15a4530842100d30fe1981b973 (patch)
tree62ef95efa54d91b6eafb6df99f330dc136f77f29 /Build/source/utils/asymptote/base/three_light.asy
parent24dbc0b1802756862bedad6a4088f50aad68b51b (diff)
asy 2.63 sources
git-svn-id: svn://tug.org/texlive/trunk@54034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/base/three_light.asy')
-rw-r--r--Build/source/utils/asymptote/base/three_light.asy4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/base/three_light.asy b/Build/source/utils/asymptote/base/three_light.asy
index 6e0bc366c78..25db6ad6d27 100644
--- a/Build/source/utils/asymptote/base/three_light.asy
+++ b/Build/source/utils/asymptote/base/three_light.asy
@@ -80,9 +80,9 @@ pen operator ecast(material m)
return m.p.length > 0 ? m.diffuse() : nullpen;
}
-material emissive(material m)
+material emissive(material m, bool colors=false)
{
- return material(black+opacity(m.opacity),m.diffuse(),black,m.opacity,1);
+ return material(black+opacity(m.opacity),colors ? m.emissive() : m.diffuse()+m.emissive(),black,m.opacity,1);
}
pen color(triple normal, material m, light light, transform3 T=light.T) {