mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-22 10:43:15 +00:00
product:: applymodel
This commit is contained in:
parent
872abace91
commit
33a236195d
@ -319,6 +319,7 @@ EX void applymodel(hyperpoint H, hyperpoint& ret) {
|
||||
switch(pmodel) {
|
||||
case mdPerspective: {
|
||||
ld ratio = vid.xres / current_display->tanfov / current_display->radius / 2;
|
||||
if(prod) H = product::inverse_exp(H);
|
||||
if(nisot::local_perspective_used()) H = nisot::local_perspective * H;
|
||||
ret[0] = H[0]/H[2] * ratio;
|
||||
ret[1] = H[1]/H[2] * ratio;
|
||||
|
Loading…
x
Reference in New Issue
Block a user