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:
parent
abd472e45a
commit
de4259ef80
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue