From c8495c7fdb0748e2dc839b347b7b4bda512f6b11 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 15 Apr 2020 18:08:55 +0200 Subject: [PATCH] wrl:: transparency --- screenshot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screenshot.cpp b/screenshot.cpp index 94e781ac..34873185 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -336,6 +336,7 @@ EX always_false in; println(f, " appearance Appearance {"); println(f, " material Material {"); println(f, " diffuseColor ", color(p.color, .8)); + if(part(p.color, 0) != 255) println(f, " transparency ", (255 - part(p.color, 0)) / 255.); println(f, " }"); println(f, " }"); // println(f, "# V = ", p.V); @@ -402,6 +403,7 @@ EX always_false in; EX void take(const string& fname, const function& what IS(shot::default_screenshot_content)) { dynamicval v2(in, true); + dynamicval v3(noshadow, true); f.f = fopen(fname.c_str(), "wt");