Skip to content

Commit feece92

Browse files
SL-20717 Add PBR to Advanced > Rendering Types
1 parent 88b228a commit feece92

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

indra/newview/llviewermenu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ U32 render_type_from_string(std::string render_type)
787787
{
788788
return LLPipeline::RENDER_TYPE_BUMP;
789789
}
790+
else if ("pbr" == render_type)
791+
{
792+
return LLPipeline::RENDER_TYPE_GLTF_PBR;
793+
}
790794
else
791795
{
792796
return 0;

indra/newview/skins/default/xui/en/menu_viewer.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,16 @@ function="World.EnvPreset"
21622162
function="Advanced.ToggleRenderType"
21632163
parameter="bump" />
21642164
</menu_item_check>
2165+
<menu_item_check
2166+
label="PBR"
2167+
name="Rendering Type PBR">
2168+
<menu_item_check.on_check
2169+
function="Advanced.CheckRenderType"
2170+
parameter="pbr" />
2171+
<menu_item_check.on_click
2172+
function="Advanced.ToggleRenderType"
2173+
parameter="pbr" />
2174+
</menu_item_check>
21652175
</menu>
21662176
<menu
21672177
create_jump_keys="true"

0 commit comments

Comments
 (0)