summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/three_light.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/three_light.asy')
-rw-r--r--Master/texmf-dist/asymptote/three_light.asy2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/texmf-dist/asymptote/three_light.asy b/Master/texmf-dist/asymptote/three_light.asy
index 73f68b62a86..6cbd9b6f0be 100644
--- a/Master/texmf-dist/asymptote/three_light.asy
+++ b/Master/texmf-dist/asymptote/three_light.asy
@@ -79,7 +79,7 @@ pen color(triple normal, material m, light light, transform3 T=light.T) {
triple[] position=light.position;
if(invisible((pen) m)) return invisible;
if(position.length == 0) return m.diffuse();
- normal=unit(T*normal);
+ normal=unit(transpose(inverse(shiftless(T)))*normal);
if(settings.twosided) normal *= sgn(normal.z);
real s=m.shininess*128;
real[] Diffuse=rgba(m.diffuse());