Raytracing backend now supports multiple worlds.

This commit is contained in:
Justin Marshall
2026-04-22 23:23:49 -07:00
parent a678dda40e
commit ef5b5f107d
18 changed files with 961 additions and 485 deletions
@@ -241,7 +241,7 @@ void idGLDrawableView::ResetView( void ) {
void idGLDrawableView::InitWorld() {
if ( world == NULL ) {
world = renderSystem->AllocRenderWorld();
world = renderSystem->AllocRenderWorld(dxrWorldId_t::DXR_MATERIAL_PREVIEW);
}
if ( worldModel == NULL ) {
worldModel = renderModelManager->AllocModel();
+1 -1
View File
@@ -921,7 +921,7 @@ void idGLDrawableWorld::draw(int x, int y, int w, int h) {
void idGLDrawableWorld::InitWorld() {
if ( world == NULL ) {
world = renderSystem->AllocRenderWorld();
world = renderSystem->AllocRenderWorld(dxrWorldId_t::DXR_WIDGET_0);
}
if ( worldModel == NULL ) {
worldModel = renderModelManager->AllocModel();
+1 -1
View File
@@ -106,7 +106,7 @@ void RadiantInit( void ) {
// allocate a renderWorld and a soundWorld
if ( g_qeglobals.rw == NULL ) {
g_qeglobals.rw = renderSystem->AllocRenderWorld();
g_qeglobals.rw = renderSystem->AllocRenderWorld(dxrWorldId_t::DXR_WORLD_EDITOR);
g_qeglobals.rw->InitFromMap( NULL );
}
if ( g_qeglobals.sw == NULL ) {