mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 13:14:30 +00:00
band_shift correctly applied in shader-based band model
This commit is contained in:
1 parent
c247936e34
commit
2e0cf7fe53
2 files changed
+7
-1
No files matched your search
@@ -439,6 +439,9 @@ void display_data::set_projection(int ed) {
|
||||
if(selected->shader_flags & SF_BAND)
|
||||
glhr::projection_multiply(glhr::scale(2 / M_PI, 2 / M_PI, GDIM == 3 ? 2/M_PI : 1));
|
||||
|
||||
if(selected->shader_flags & SF_BAND)
|
||||
glhr::projection_multiply(glhr::translate(band_shift, 0, 0));
|
||||
|
||||
if(selected->shader_flags & SF_HALFPLANE) {
|
||||
glhr::projection_multiply(glhr::translate(0, 1, 0));
|
||||
glhr::projection_multiply(glhr::scale(-1, 1, 1));
|
||||
|
||||
Reference in new issue
Block a user