/** * Adds a new diffusemap stage when the user selects the menu option. */ void StageView::OnAddDiffuseStage() { MaterialDoc* material = materialDocManager->GetCurrentMaterialDoc(); material->AddStage(MaterialDoc::STAGE_TYPE_SPECIALMAP, "diffusemap"); }
/** * Adds a new specularmap stage when the user selects the menu option. */ void StageView::OnAddSpecualarStage() { MaterialDoc* material = materialDocManager->GetCurrentMaterialDoc(); material->AddStage(MaterialDoc::STAGE_TYPE_SPECIALMAP, "specularmap"); }
/** * Adds a new stage when the user selects the menu option. */ void StageView::OnAddStage() { MaterialDoc* material = materialDocManager->GetCurrentMaterialDoc(); idStr name = va("Stage %d", material->GetStageCount()+1); material->AddStage(MaterialDoc::STAGE_TYPE_NORMAL, name.c_str()); }