stones.incサンプル


T_Stone1 T_Stone2 T_Stone3 T_Stone4
T_Stone5 T_Stone6 T_Stone7 T_Stone8
T_Stone9 T_Stone10 T_Stone11 T_Stone12
T_Stone13 T_Stone14 T_Stone15 T_Stone16
T_Stone17 T_Stone18 T_Stone19 T_Stone20
T_Stone21 T_Stone22 T_Stone23 T_Stone24
T_Stone25 T_Stone26 T_Stone27 T_Stone28
T_Stone29 T_Stone30 T_Stone31 T_Stone32
T_Stone33 T_Stone34 T_Stone35 T_Stone36
T_Stone37 T_Stone38 T_Stone39 T_Stone40
T_Stone41 T_Stone42 T_Stone43 T_Stone44

上のサンプルを作ったときのソースは下のようになっています。

#include "colors.inc"
#include "skies.inc"
#include "stones.inc"

camera {
	location <4, 6, -10>
	look_at <-0.2, 1, 0>
	angle 23
	right     x*image_width/image_height
}

light_source {
 	<100, 100, -100>
	color rgb 1.2
}

light_source {
 	<-0, 10, -100>
	color rgb 0.3
}

object {
	plane { y, 0 }
	texture {
		pigment {
			checker
				color rgb 1,
				color rgb 0
		}
		finish {
			ambient 0.3
		}
	scale 0.5
	}
}

sky_sphere { S_Cloud5 }


#declare myTex = texture { T_Stone1 }

object {
	sphere { <0, 1, 0>, 1 }
	texture { myTex }
	translate <1, 0, 0>
}

object {
	box { <-1, -1, -1>, <1, 1, 1> }
	texture { myTex }
	translate <-1, 1, 0>
}

戻る