Merge branch 'DRTVWR-601' of github.com:secondlife/viewer into DRTVWR-601

meow-7.2.2
RunitaiLinden 2023-12-14 10:22:48 -06:00
commit 7bfe590a36
4 changed files with 16 additions and 1 deletions

View File

@ -596,6 +596,7 @@ Henri Beauchamp
SL-15175
SL-19110
SL-19159
[NO JIRA] (fullbright HUD alpha fix)
herina Bode
Hikkoshi Sakai
VWR-429

View File

@ -76,9 +76,9 @@ void main()
vec3 pos = vary_position;
color.a = final_alpha;
#ifndef IS_HUD
color.rgb = srgb_to_linear(color.rgb);
color.a = final_alpha;
#ifdef IS_ALPHA
vec3 sunlit;

View File

@ -787,6 +787,10 @@ U32 render_type_from_string(std::string render_type)
{
return LLPipeline::RENDER_TYPE_BUMP;
}
else if ("pbr" == render_type)
{
return LLPipeline::RENDER_TYPE_GLTF_PBR;
}
else
{
return 0;

View File

@ -2162,6 +2162,16 @@ function="World.EnvPreset"
function="Advanced.ToggleRenderType"
parameter="bump" />
</menu_item_check>
<menu_item_check
label="PBR"
name="Rendering Type PBR">
<menu_item_check.on_check
function="Advanced.CheckRenderType"
parameter="pbr" />
<menu_item_check.on_click
function="Advanced.ToggleRenderType"
parameter="pbr" />
</menu_item_check>
</menu>
<menu
create_jump_keys="true"