IESDataset¶
from acron._rplight import IESDataset
- class IESDataset¶
Bases:
This class is used by the IESLoader to generate a LUT texture which is used in the shaders to perform IES lighting. It takes a set of vertical and horizontal angles, as well as a set of candela values, which then are lineary interpolated onto a 2D LUT Texture.
Inheritance diagram
digraph inheritance158c1c3e02 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "IESDataset" [URL="acron._rplight.IESDataset.html#acron._rplight.IESDataset",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "IESDataset" [arrowsize=0.75,style=""]; }- __init__()¶
This constructs a new
IESDatasetwith no data set.
- generate_dataset_texture_into()¶
This generates the LUT into a given dataset texture. The x-axis referes to the vertical_angle, whereas the y-axis refers to the horizontal angle.
2D Texture Array.
- set_candela_values()¶
This sets the candela values of the dataset. They should be an interleaved 2D array with the dimensions vertical_angles x horizontal_angles. They also should be normalized by dividing by the maximum entry.
- set_horizontal_angles()¶
This sets the list of horizontal angles of the dataset.
- set_vertical_angles()¶
This sets the list of vertical angles of the dataset.