Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Alchemy Next
Commits
f18d9883
Commit
f18d9883
authored
Sep 12, 2021
by
Rye Mutt
🍞
Browse files
Small cleanup to alrenderutil
parent
7020270b
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/newview/alrenderutils.cpp
View file @
f18d9883
...
...
@@ -278,7 +278,7 @@ void ALRenderUtil::renderTonemap(LLRenderTarget* src, LLRenderTarget* dst)
{
src
->
bindTexture
(
0
,
channel
,
LLTexUnit
::
TFO_POINT
);
}
tone_shader
->
uniform2f
(
LLShaderMgr
::
DEFERRED_SCREEN_RES
,
dst
->
getWidth
(),
dst
->
getHeight
());
tone_shader
->
uniform2f
(
LLShaderMgr
::
DEFERRED_SCREEN_RES
,
src
->
getWidth
(),
src
->
getHeight
());
tone_shader
->
uniform1f
(
al_exposure
,
mTonemapExposure
);
switch
(
mTonemapType
)
...
...
@@ -410,8 +410,7 @@ void ALRenderUtil::renderSharpen(LLRenderTarget* src, LLRenderTarget* dst)
sharpen_shader
->
bind
();
// Draw
src
->
bindTexture
(
0
,
0
,
LLTexUnit
::
TFO_POINT
);
gGL
.
getTexUnit
(
0
)
->
setTextureColorSpace
(
LLTexUnit
::
TCS_LINEAR
);
src
->
bindTexture
(
0
,
0
,
LLTexUnit
::
TFO_POINT
,
LLTexUnit
::
TCS_LINEAR
);
mRenderBuffer
->
setBuffer
(
LLVertexBuffer
::
MAP_VERTEX
);
mRenderBuffer
->
drawArrays
(
LLRender
::
TRIANGLES
,
0
,
3
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment