mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-31 13:04:31 +00:00
Panini projection
This commit is contained in:
1 parent
2cc06e39ba
commit
6513b3a87e
6 files changed
+104
-17
No files matched your search
@@ -208,6 +208,7 @@ EX namespace models {
|
||||
EX bool has_orientation(eModel m) {
|
||||
if(m == mdHorocyclic)
|
||||
return hyperbolic;
|
||||
if((m == mdPerspective || m == mdGeodesic) && panini_alpha) return true;
|
||||
return
|
||||
among(m, mdHalfplane, mdPolynomial, mdPolygonal, mdTwoPoint, mdJoukowsky, mdJoukowskyInverted, mdSpiral, mdSimulatedPerspective, mdTwoHybrid, mdHorocyclic, mdAxial, mdAntiAxial, mdQuadrant,
|
||||
mdWerner, mdAitoff, mdHammer, mdLoximuthal, mdWinkelTripel) || mdBandAny();
|
||||
@@ -868,6 +869,10 @@ EX namespace models {
|
||||
PHASEFROM(2);
|
||||
shift_arg_formula(vpconf.skiprope);
|
||||
}
|
||||
else if(argis("-palpha")) {
|
||||
PHASEFROM(2);
|
||||
shift_arg_formula(panini_alpha, reset_all_shaders);
|
||||
}
|
||||
else if(argis("-zoom")) {
|
||||
PHASEFROM(2); shift_arg_formula(vpconf.scale);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user