SHARE
TWEET

Untitled

a guest Jul 26th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _w =  _x0 * _pv[3] + _y0 * _pv[7] + _z0 * _pv[11] + _pv[15];
  2. if (_w > 0) {
  3.     var _x = (_x0 * _pv[0] + _y0 * _pv[4] + _z0 * _pv[8]  + _pv[12]) / abs(_w);
  4.     var _y = (_x0 * _pv[1] + _y0 * _pv[5] + _z0 * _pv[9]  + _pv[13]) / abs(_w);
  5.     _x = _half_port_width + _x * _half_port_width;
  6.     _y = _half_port_height - _y * _half_port_height;          
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top