Unstable & with drawing restored

This commit is contained in:
Ilusha 2024-03-17 23:37:15 +03:00 committed by Ilya Shurupov
parent 1155067b26
commit cd8feaf2c0
15 changed files with 1004 additions and 31 deletions

View file

@ -28,14 +28,12 @@ namespace tp {
return;
}
halnf pressure = 0.f;
auto crs = (events.getPos() - this->mArea.pos);
crs.x /= this->mArea.z;
crs.y /= this->mArea.w;
crs = (crs - 0.5) * 2;
mProject.sample(pressure, this->mArea.w / this->mArea.z, crs);
mProject.sample(events.pressure, this->mArea.w / this->mArea.z, crs);
// mProject.setBackGroundColor();
}