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
0f1a59a7
Commit
0f1a59a7
authored
Aug 22, 2021
by
Rye Mutt
🍞
Browse files
Fix sim water and void water being misaligned
parent
f9125dca
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/newview/llvowater.cpp
View file @
0f1a59a7
...
...
@@ -190,13 +190,6 @@ BOOL LLVOWater::updateGeometry(LLDrawable *drawable)
F32
size_inv
=
1.
f
/
size
;
F32
z_fudge
=
0.
f
;
if
(
getIsEdgePatch
())
{
//bump edge patches down 10 cm to prevent aliasing along edges
z_fudge
=
-
0.1
f
;
}
for
(
y
=
0
;
y
<
size
;
y
++
)
{
for
(
x
=
0
;
x
<
size
;
x
++
)
...
...
@@ -205,7 +198,6 @@ BOOL LLVOWater::updateGeometry(LLDrawable *drawable)
position_agent
=
getPositionAgent
()
-
getScale
()
*
0.5
f
;
position_agent
.
mV
[
VX
]
+=
(
x
+
0.5
f
)
*
step_x
;
position_agent
.
mV
[
VY
]
+=
(
y
+
0.5
f
)
*
step_y
;
position_agent
.
mV
[
VZ
]
+=
z_fudge
;
*
verticesp
++
=
position_agent
-
right
+
up
;
*
verticesp
++
=
position_agent
-
right
-
up
;
...
...
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