Apply a lighting effect on the object.
This is used to apply lighting calculations (from a single light source) to a given mapped object. The R, G and B values of each vertex will be modified to reflect the lighting based on the light point coordinates, the light color and the ambient color, and at what angle the map is facing the light source. A surface should have its points be declared in a clockwise fashion if the face is "facing" towards you (as opposed to away from you) as faces have a "logical" side for lighting.
The coordinates are set relative to the given pivot
object. If its geometry changes, then the absolute position of the rotation center will change accordingly. The Z position is absolute. If the pivot
is null
then this object will be its own pivot.
Since 1.22
lighting_3d { params { @in pivot: const(Efl.Gfx.Entity); @in lx: double; @in ly: double; @in lz: double; @in lr: int; @in lg: int; @in lb: int; @in ar: int; @in ag: int; @in ab: int; } }
void efl_gfx_mapping_lighting_3d(Eo *obj, const Efl_Gfx_Entity *pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab);
null
.