Skip to content

Commit 7bfe590

Browse files
committed
Merge branch 'DRTVWR-601' of github.com:secondlife/viewer into DRTVWR-601
2 parents 9212e09 + feece92 commit 7bfe590

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

doc/contributions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ Henri Beauchamp
596596
SL-15175
597597
SL-19110
598598
SL-19159
599+
[NO JIRA] (fullbright HUD alpha fix)
599600
herina Bode
600601
Hikkoshi Sakai
601602
VWR-429

indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ void main()
7676

7777
vec3 pos = vary_position;
7878

79+
color.a = final_alpha;
7980
#ifndef IS_HUD
8081
color.rgb = srgb_to_linear(color.rgb);
81-
color.a = final_alpha;
8282
#ifdef IS_ALPHA
8383

8484
vec3 sunlit;

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)