Unigine::BakeLighting Class
Header: | #include <UnigineRender.h> |
BakeLighting Class
Members
int getVoxelsPerFrame()
Return number of voxels computed and visualized per single frame.Return value
void setVoxelsPerFrame(int frame)
Sets number of voxels computed and visualized per single frame.Arguments
- int frame - Number of voxels per frame within the [1, 100] range. The default value is 1.
High values cause longer user interface response.
void bakeEnvironmentProbes()
Starts the process of light baking for all environment probes in the scene.void bakeVoxelProbes()
Starts the process of light baking for all voxel probes in the scene.void bake(const Vector< Ptr<Node> > & probes)
Starts the process of light baking for the all voxel and environment probes in the given list.Arguments
- const Vector< Ptr<Node> > & probes - List of voxel and environment probe nodes for which the process of light baking is to be performed.
void bakeAll()
Starts the process of light baking for all voxel and environment probes in the scene.int isBaking()
Returns a value indicating if the process of baking is being performed at the moment.Return value
1 if lighting is being baked; otherwise - 0.int getCurrentBounce()
Returns a bounce being calculated at the moment.If the process of baking is not being performed at the moment, 1 is returned.
Return value
Bounce number.int getBounces()
Returns number of all bounces.Return value
Number of bounces.int getProgress()
Returns overall progress of light baking.If the process of baking is not being performed at the moment, 0 is returned.
Return value
Overall baking progress, in percents.int getProgressBounce()
Returns a value showing progress of calculating current bounce.Return value
Bounce calculating progress, in percents.float getVoxelSizeMultiplier()
Returns the value of the voxel size multiplier parameter. By default, it is equal to 1.0f.Return value
Voxel size multiplier.void setBounces(int bounces)
Sets number of bounces.Arguments
- int bounces - Number of bounces within the [1, 32] range. The default value is 1.
int getProgressLight()
Returns progress of light baking for the current LightVoxelProbe at the moment.Return value
LightVoxelProbe progress, in percents.BakeLighting * get()
Returns an instance of BakeLighting Class.Return value
BakeLighting instance.float getTimer()
Returns the time elapsed from the start of the process of baking.Return value
Elapsed time, in seconds.void setVoxelSizeMultiplier(float multiplier)
Sets the value of the voxel size multiplier parameter.Arguments
- float multiplier - Voxel size multiplier within the [0.0f, 8.0f] range. The default value is 1.
void stop()
Interrupts the process of light baking, if it is in performing state.Ptr<Light> getCurrentLight()
Returns an instance of the LightVoxelProbe being calculated at the moment.Return value
Current LightVoxelProbe.Last update: 10.08.2018
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter