Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
AMOEBA
Commits
fd2046ce
Commit
fd2046ce
authored
Jul 09, 2016
by
amandaghassaei
Browse files
small changes
parent
4cd227cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/simulation/function/EM/shaders/velocityCalcShader.js
View file @
fd2046ce
...
...
@@ -261,8 +261,7 @@ void main(){
//else if (neighborAxis == 1) actuatedD[1] *= 1.0+actuation;
//else if (neighborAxis == 2) actuatedD[2] *= 1.0+actuation;
float
kIndex_x
=
((
fragCoord
.
x
-
0.5
)
*
12.0
+
2.0
*
(
i
*
3.0
+
float
(
j
))
+
0.5
)
/
(
u_textureDim
.
x
*
12.0
);
vec2
kIndex
=
vec2
(
kIndex_x
,
scaledFragCoord
.
y
);
vec2
kIndex
=
vec2
(((
fragCoord
.
x
-
0.5
)
*
12.0
+
2.0
*
(
i
*
3.0
+
float
(
j
))
+
0.5
)
/
(
u_textureDim
.
x
*
12.0
),
scaledFragCoord
.
y
);
vec3
translationalK
=
texture2D
(
u_compositeKs
,
kIndex
).
xyz
;
vec3
translationalD
=
texture2D
(
u_compositeDs
,
kIndex
).
xyz
;
...
...
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