90度方向から
var lighting1 = Group{
content:[
Circle{
centerX: 30
centerY: 20
radius: 20
fill: Color.RED
opacity: 0.9
}
]
effect: Lighting{
light: DistantLight{azimuth: 90}}
};
270度方向から
var lighting2 = Group{
content:[
Circle{
centerX: 30
centerY: 20
radius:20
fill: Color.RED
opacity: 0.9
}
]
effect: Lighting{
light: DistantLight{azimuth: 270}}
};
1点からライティング
var lighting3 = Group{
content:[
Circle{
centerX: 30
centerY: 20
radius: 20
fill: Color.RED
opacity: 0.9
}
]
effect: Lighting{
light: PointLight{x: 20 y: 30 z: 50}}
};
スポットライト
var lighting4 = Group{
content:[
Circle{
centerX: 30
centerY: 20
radius: 20
fill: Color.RED
opacity: 0.9
}
]
effect: Lighting{
light: SpotLight {
x: 0
y: 10
z: 10
pointsAtX: 20
pointsAtY: 20
pointsAtZ: 0
specularExponent: 2
}
}
};
0 件のコメント:
コメントを投稿