band_shift correctly applied in shader-based band model

This commit is contained in:
Zeno Rogue committed 2019-12-27 00:49:58 +01:00
1 parent c247936e34
commit 2e0cf7fe53
2 files changed
+7 -1

No files matched your search

+3
View File
@@ -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));