|
|
//A scene that works and displays a checkered plane in the background with a
media in the view:
#version 3.8;
global_settings{ assumed_gamma 1.0 }
camera{
location <0, 1, -6>
look_at <0, 0, 0>
sky y
right 1*x
up 1*y
direction 1*z
rotate -x*90
}
light_source{ <20, 20, -40> color srgb 1 }
#declare Mode = 0; // <--- change this to see what I mean
plane{z, 4 pigment{ checker color srgb <0, 0, 1>, color srgb <1, 1, 0> }
#if (Mode) inverse #end
}
sphere{ 0, 1 hollow on pigment{ color srgbft <0, 0, 0, 0, 1> }
interior{
media{ emission 1 samples 1,30 intervals 10
density{
spherical density_map{
[0 color srgb 0 ]
[0.4 color srgb <1, 1, 0> ]
[1 color srgb <1, 0, 0> ]
}
warp{ turbulence 0.25 lambda 4 omega 0.6 }
}
}
}
translate -2*z
}
//But if I change the plane statement line with the following:
//plane{z, 4 pigment{ checker color srgb <0, 0, 1>, color srgb <1, 1, 0> } }
Post a reply to this message
|
|