1
我在射線追蹤POV射線的區域光源,並想檢查源的樣子。所以我在其旁邊放置了一個擴散板(並與之平行)。儘管我只看到單點光源的中心,而不是我期望從下面的area_light設置獲得的5x5點光源陣列。爲什麼我看不到其他24點光源照亮光盤?POV射線中的area_light僅獲得1個點?
#version 3.7;
#include "colors.inc" // The include files contain
#include "textures.inc" // pre-defined scene elements
#include "shapes.inc"
global_settings { assumed_gamma 1.0 }
background { color White }
camera {
orthographic
location <0,0,20>
look_at <0, 0, 0>
sky <0, 0, 1>
right <-1, 0, 0>
angle 50
}
#declare plate = disc {
<0,0,0.99>, <0,0,1>,6
texture { pigment { color White }}
finish { diffuse albedo 1. }
}
#declare my_light = light_source {
<0,0, 1>
color rgb <0.3,0.3,0.3>
area_light <5,0, 0>, <0,5,0>, 5, 5
}
light_group {
light_source {my_light}
plate
global_lights off
}