ofwin_setlightposition Subroutine

public subroutine ofwin_setlightposition(row, col, x, y, z, w)

Set the light position for the specified grid position.

This applies to the current active WindowProxy. Light position is defined in eye coordinates (x right, y up, z out of screen).

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: row

Row in the grid to set.

integer(kind=int32), intent(in) :: col

Column in the grid to set.

real(kind=real32), intent(in) :: x

X position in eye space.

real(kind=real32), intent(in) :: y

Y position in eye space.

real(kind=real32), intent(in) :: z

Z position in eye space.

real(kind=real32), intent(in) :: w

If 0 then directional (antiparallel to x,y,z direction). If 1 then positional (radiates from x,y,z direction).