I just ran my regression tester script in the (regression.py (23.0 KB)) in which I extensively use environments. Here also bundled with the necessary data files raytraced_regression_tests.7z (9.7 MB).
Although this is in Python the same holds still for other .NET languages like C#.
The interesting section is method
prepare_model from lines 238 through 318, specifically 278-306. You can ensure the correct background style is set in the render settings (279-280).
With the script I generate all combinations of settings I’m interested in, and generate a huge amount of 3dm-files based on that. This is all to test environments, skylight, sun usage and groundplane. This all seems to work fine with the current public Release Candidate (
Rhino 6 SR0 2018-1-12 (Rhino WIP, 6.0.18012.13241, Git hash:master @ 00ae144185bd9d3bd331a5464cb37a9e051f7258)
If you have a small plug-in code that still shows the problem can you please share it so I can test?
P.S. Never mind the messy test code. Evolution wasn’t kind to it.