pov-ray/tuts/lite_demo.pov

168 lines
2.8 KiB
POVRay
Raw Normal View History

2014-02-03 20:32:32 -06:00
#version 3.7;
#include "colors.inc"
#include "textures.inc"
global_settings {
assumed_gamma 1.8
// ambient_light White
}
camera {
// right x*1280/720
right 1.78*x
location <-4, 3, -12>
look_at 0
angle 48
}
#declare spots = union {
light_source { <0, 10, -3>
color White
spotlight
radius 15
falloff 18
tightness 10
point_at 0
}
light_source { <10, 10, -1>
color Red
spotlight
radius 12
falloff 14
tightness 10
point_at <2, 0, 0>
}
light_source { <-12, 10, -1>
color Blue
spotlight
radius 12
falloff 14
tightness 10
point_at <-2, 0, 0>
}
}
#declare spot_area = union {
light_source { <2, 10, -3>
color White
spotlight
radius 15
falloff 18
tightness 10
area_light <1, 0, 0>, <0, 0, 1>, 2, 2
adaptive 1
jitter
point_at 0
}
light_source { <10,10,-1>
color Red
spotlight
radius 12
falloff 14
tightness 10
area_light <1,0,0>, <0,0,1>, 2,2
adaptive 1
jitter
point_at <2,0,0>
}
light_source { <-12,10,-1>
color Blue
spotlight
radius 12
falloff 14
tightness 10
area_light <1,0,0>, <0,0,1>, 2,2
adaptive 1
jitter
point_at <-2,0,0>
}
}
// spots
// spot_area
#declare light_bulb = union {
merge {
sphere { <0,0,0>,1 }
cylinder {
<0,0,1>, <0,0,0>, 1
scale <0.35, 0.35, 1.0>
translate 0.5*z
}
texture {
pigment {color rgb <1, 1, 1>}
finish {ambient .8 diffuse .6}
}
}
cylinder {
<0,0,1>, <0,0,0>, 1
scale <0.4, 0.4, 0.5>
texture { Brass_Texture }
translate 1.5*z
}
rotate -90*x
scale .5
}
light_source { <0, 2.2, 0>
color White
area_light <1, 0, 0>, <0, 1, 0>, 2, 2
adaptive 1
jitter
looks_like { light_bulb }
}
light_source { <0, 20, 0>
color Gray75
fade_distance 10
fade_power 2
shadowless
}
////////////////
// objects
plane {
y, -1
texture {
pigment {
checker
color rgb<0.5, 0, 0>
color rgb<0, 0.5, 0.5>
}
finish {
diffuse 0.4
ambient 0.2
phong 1
phong_size 100
reflection 0.25
}
}
}
torus {
1.5, 0.5
texture { Brown_Agate }
rotate <90, 160, 0>
translate <-1, 1, 3>
}
box {
<-1, -1, -1>, <1, 1, 1>
texture { DMFLightOak }
translate <2, 0, 2.3>
}
cone {
<0,1,0>, 0, <0,0,0>, 1
texture { PinkAlabaster }
scale <1, 3, 1>
translate <-2, -1, -1>
}
sphere {
<0,0,0>,1
texture { Sapphire_Agate }
translate <1.5, 0, -2>
}