BBMOD_Cubemap.set_target

A function defined in BBMOD_Cubemap.gml

set_target()

Description

Sets next cubemap side surface as the render target and sets the current view and projection matrices appropriately.

Returns

Bool Returns true if the render target was set or false if all cubemap sides were iterated through.

Example

while (cubemap.set_target())
{
   draw_clear(c_black);
   // Render to cubemap here...
   cubemap.reset_target();
}

Note

This also sets the camera position using bbmod_camera_set_position and it is reset back to its original value when the reset_target method is called.

See also

BBMOD_IRenderTarget.reset_target

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 18, 2024 using GMDoc.