Fixup computeboids translation error.

There was a - that changed to a + while converting. Fixed.

Change-Id: Ic50a04624c5f4efdfc114459ccd5f42fc53c3ca2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20629
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair 2020-05-01 19:06:03 +00:00 committed by dan sinclair
parent abd472e45a
commit de4259ef80
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ fn compute_main() -> void {
}
if (cMassCount > 0) {
cMass =
(cMass / vec2<f32>(cast<f32>(cMassCount), cast<f32>(cMassCount))) + vPos;
(cMass / vec2<f32>(cast<f32>(cMassCount), cast<f32>(cMassCount))) - vPos;
}
if (cVelCount > 0) {
cVel = cVel / vec2<f32>(cast<f32>(cVelCount), cast<f32>(cVelCount));