From 942fd9ff8e267b361de580a95fa247e486120891 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 21 Aug 2011 13:24:13 -0600 Subject: Replace sky_spheres with a single background pigment. --- dimension/dimension.in | 3 --- dimension/tests/demo.dmnsn | 19 ++++++------------- 2 files changed, 6 insertions(+), 16 deletions(-) (limited to 'dimension') diff --git a/dimension/dimension.in b/dimension/dimension.in index cfebe78..c637d26 100644 --- a/dimension/dimension.in +++ b/dimension/dimension.in @@ -151,7 +151,6 @@ camera = PerspectiveCamera() default_texture = Texture(finish = Ambient(0.1) + Diffuse(0.7)) default_interior = Interior() background = Black -sky_sphere = None recursion_limit = None # Execute the input script @@ -178,8 +177,6 @@ scene.outer_width = _args.width scene.outer_height = _args.height scene.default_texture = default_texture scene.background = background -if sky_sphere is not None: - scene.sky_sphere = sky_sphere if recursion_limit is not None: scene.recursion_limit = recursion_limit if _args.threads is not None: diff --git a/dimension/tests/demo.dmnsn b/dimension/tests/demo.dmnsn index 04783a0..fbf51da 100644 --- a/dimension/tests/demo.dmnsn +++ b/dimension/tests/demo.dmnsn @@ -23,19 +23,12 @@ camera = PerspectiveCamera(location = (0, 0.25, -4), 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), - }, - ), - ] +background = PigmentMap( + pattern = Gradient(Y), + map = { + 0: Orange, + 0.35: Color(0, 0.1, 0.2, trans = 0.1, filter = 0.0), + }, ) # Lights -- cgit v1.2.3