| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | value | :: | light |
light handle (vkf_light_create, vkf_viewer_light) |
||
| real(kind=c_float), | intent(in), | dimension(3) | :: | ambient |
colors (rgb, 0 to 1) |
|
| real(kind=c_float), | intent(in), | dimension(3) | :: | diffuse |
colors (rgb, 0 to 1) |
|
| real(kind=c_float), | intent(in), | dimension(3) | :: | specular |
colors (rgb, 0 to 1) |
|
| real(kind=c_double), | intent(in), | dimension(4) | :: | position |
OpenGL's (x, y, z, w): w = 0 for a directional light from direction (x, y, z), else a point light at (x/w, y/w, z/w) |
Set a light's colors and position, in its node's coordinates. Returns 0 (-1 for a bad handle).