diff options
Diffstat (limited to 'dimension/tests/demo.dmnsn')
-rw-r--r-- | dimension/tests/demo.dmnsn | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/dimension/tests/demo.dmnsn b/dimension/tests/demo.dmnsn index 550c57a..f20be39 100644 --- a/dimension/tests/demo.dmnsn +++ b/dimension/tests/demo.dmnsn @@ -17,14 +17,27 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # ######################################################################### -# Background -background = Clear - # Camera camera = PerspectiveCamera(location = (0, 0.25, -4), look_at = 0) camera.transform(rotate(53*Y)) +# Background +background = Clear + +# Sky sphere +sky_sphere = SkySphere( + [ + PigmentMap( + pattern = Gradient(Y), + map = { + 0: Orange, + 0.35: Color(0, 0.1, 0.2, trans = 0.1, filter = 0.0), + }, + ), + ] +) + # Lights lights = [ PointLight(location = (-15, 20, 10), color = White), @@ -66,7 +79,7 @@ arrow = Union( open = True ), ], - pigment = ColorMap( + pigment = PigmentMap( Gradient(Y), { 0/6: Red, @@ -125,7 +138,7 @@ ground = Plane( Checker(), [ White, - ColorMap(Checker(), [Black, White]).transform(scale(1/3)) + PigmentMap(Checker(), [Black, White]).transform(scale(1/3)) ], ), ) @@ -136,16 +149,3 @@ objects = [ strip, ground, ] - -# Sky sphere -sky_sphere = SkySphere( - [ - ColorMap( - pattern = Gradient(Y), - map = { - 0: Orange, - 0.35: Color(0, 0.1, 0.2, trans = 0.1, filter = 0.0), - }, - ), - ] -) |