Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float _h = rensizeh / (distance * cos(f - ca));
- float _x = rensizew * reni;
- float _y = (rensizeh / 2.f - _h / 2.f) + this->getCamera()->GetOffsetY();
- d3d9_line(this->g_dev, _x, _y, _x + rensizew, _y, D3DCOLOR_ARGB(255, 255, 255, 255));
- d3d9_line(this->g_dev, _x, _y + _h, _x + rensizew, _y + _h, D3DCOLOR_ARGB(255, 255, 255, 255));
- float d = 0.f;
- if ((lineIntersect = this->Ray(t, { t.x + dist * static_cast<float>(cos(PI + f)),
- t.y + dist * static_cast<float>(sin(PI + f)) }, t, d, object)))
- distance += d;
- else
- break;
Advertisement
Add Comment
Please, Sign In to add comment