mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-24 06:50:09 +00:00
slr:: slr::range_z parameter
This commit is contained in:
parent
e74f2e3c78
commit
9c603c13d4
@ -989,6 +989,7 @@ EX void initConfig() {
|
||||
#endif
|
||||
param_i(slr::shader_iterations, "slr-steps");
|
||||
param_f(slr::range_xy, "slr-range-xy");
|
||||
param_f(slr::range_z, "slr-range-z");
|
||||
|
||||
param_f(arcm::euclidean_edge_length, "arcm-euclid-length");
|
||||
|
||||
@ -1435,6 +1436,10 @@ EX void edit_sightrange() {
|
||||
dialog::add_action([] {
|
||||
dialog::editNumber(slr::range_xy, 0, 10, 0.5, 4, XLAT("max difference in X/Y coordinates"), "");
|
||||
});
|
||||
dialog::addSelItem(XLAT("max difference in Z coordinate"), fts(slr::range_z), 'x');
|
||||
dialog::add_action([] {
|
||||
dialog::editNumber(slr::range_xy, 0, 10, 0.5, 4, XLAT("max difference in Z coordinate"), "");
|
||||
});
|
||||
dialog::addSelItem(XLAT("shader_iterations"), its(slr::shader_iterations), 'z');
|
||||
dialog::add_action([] {
|
||||
dialog::editNumber(slr::shader_iterations, 0, 50, 1, 10, "", "");
|
||||
|
@ -1728,8 +1728,12 @@ EX }
|
||||
|
||||
EX namespace slr {
|
||||
|
||||
/** in what range are we rendering H2xR */
|
||||
/** in what range are we rendering SL(2,R) */
|
||||
EX ld range_xy = 2;
|
||||
|
||||
/** in what Z range are we rendering SL(2,R) */
|
||||
EX ld range_z = 2;
|
||||
|
||||
/** the number of steps for inverse_exp in the shader */
|
||||
EX int shader_iterations = 15;
|
||||
|
||||
@ -2876,6 +2880,7 @@ EX namespace nisot {
|
||||
#endif
|
||||
if(argis("-slrange")) {
|
||||
shift_arg_formula(slr::range_xy);
|
||||
shift_arg_formula(slr::range_z);
|
||||
return 0;
|
||||
}
|
||||
#if CAP_SOLV
|
||||
|
Loading…
x
Reference in New Issue
Block a user