A function defined in BBMOD_Cubemap.gml
set_target()
Sets next cubemap side surface as the render target and sets the current view and projection matrices appropriately.
Bool
Returns true
if the render target was set or false
if all cubemap sides were iterated through.
while (cubemap.set_target())
{
draw_clear(c_black);
// Render to cubemap here...
cubemap.reset_target();
}
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.
BBMOD_IRenderTarget.reset_target
Copyright © 2025, BlueBurn. Built on January 04, 2025 using GMDoc.