diff options
author | Karl Berry <karl@freefriends.org> | 2019-04-03 22:33:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-04-03 22:33:45 +0000 |
commit | 072987993bdb3cf5495219b96ad4056509ccb7ab (patch) | |
tree | 7db7f28ff1713a570c4ef960d5e4c2dbabf0fdc1 /Master/texmf-dist/asymptote/plain_prethree.asy | |
parent | 0714966cf940fe8c3abb344bdffd6744f88eec4d (diff) |
asymptote 2.49
git-svn-id: svn://tug.org/texlive/trunk@50744 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/plain_prethree.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/plain_prethree.asy | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Master/texmf-dist/asymptote/plain_prethree.asy b/Master/texmf-dist/asymptote/plain_prethree.asy index cfc0c3c7411..0d3921e3f0d 100644 --- a/Master/texmf-dist/asymptote/plain_prethree.asy +++ b/Master/texmf-dist/asymptote/plain_prethree.asy @@ -165,7 +165,6 @@ struct light { real[][] specular; pen background=nullpen; // Background color of the 3D canvas. real specularfactor; - bool viewport; // Are the lights specified (and fixed) in the viewport frame? triple[] position; // Only directional lights are currently implemented. transform3 T=identity(4); // Transform to apply to normal vectors. @@ -176,7 +175,7 @@ struct light { pen[] ambient=array(diffuse.length,black), pen[] specular=diffuse, pen background=nullpen, real specularfactor=1, - bool viewport=false, triple[] position) { + triple[] position) { int n=diffuse.length; assert(ambient.length == n && specular.length == n && position.length == n); @@ -192,21 +191,18 @@ struct light { this.position[i]=unit(position[i]); } this.specularfactor=specularfactor; - this.viewport=viewport; } void operator init(pen diffuse=white, pen ambient=black, pen specular=diffuse, - pen background=nullpen, real specularfactor=1, - bool viewport=false...triple[] position) { + pen background=nullpen, real specularfactor=1 ...triple[] position) { int n=position.length; operator init(array(n,diffuse),array(n,ambient),array(n,specular), - background,specularfactor,viewport,position); + background,specularfactor,position); } void operator init(pen diffuse=white, pen ambient=black, pen specular=diffuse, - pen background=nullpen, bool viewport=false, - real x, real y, real z) { - operator init(diffuse,ambient,specular,background,viewport,(x,y,z)); + pen background=nullpen, real x, real y, real z) { + operator init(diffuse,ambient,specular,background,(x,y,z)); } void operator init(explicit light light) { @@ -215,7 +211,6 @@ struct light { specular=copy(light.specular); background=light.background; specularfactor=light.specularfactor; - viewport=light.viewport; position=copy(light.position); } |