#include "colors.inc" //色に関するインクルードファイル #include "textures.inc" #include "shapes.inc" #include "glass.inc" camera { //カメラの設定 location <0, 0, -20> //カメラを置く位置 look_at <0, 0, 0> //レンズで狙う位置 angle 20 //角度 } light_source { //点光源の設定 <-10, 3, -20> //ライトの位置 color red 1 green 1 blue 1 //ライトの色 } background { color Blue } //背景の色指定 plane { //地面の作成 y, -2 //y軸方向の位置 texture { //テクスチャ指定 pigment { //色指定 checker //ノーマルパターンの指定 color Red color Yellow //チェッカの色指定 } } } sphere { //球の描画 <-1,1 , 0> //中心指定 1 //半径指定 finish{reflection 0.7} } cone { //円錐の描画 <2.8,1.5,1>,0.5 //一端の中心と半径指定 <1.6 ,0.8,2>, 1 //他端の中心と半径指定 texture { //テクスチャ指定 pigment { //色指定 color rgbf < 1, 1 ,0 > //RGBカラーの指定 } } } sphere { //球の描画 <1, 1, 1> //中心指定 1 texture { //テクスチャ指定 T_Glass1 //色指定 } //半径指定 }