1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

3d:: fixed transparent walls

This commit is contained in:
Zeno Rogue 2019-05-11 16:49:12 +02:00
parent 7ce12ef63b
commit 16c4108a8d

View File

@ -2445,7 +2445,7 @@ void make_wall(int id, vector<hyperpoint> vertices, bool force_triangles = false
int STEP = vid.texture_step;
for(int a=0; a<n; a++) for(int y=0; y<STEP; y++) {
hyperpoint h = (vertices[a] * (STEP-y) + vertices[(a+1)%n] * y)/STEP;
if(!binarytiling) { hpcpush(normalize(h)); return; }
if(!binarytiling) { hpcpush(normalize(h)); continue; }
hyperpoint res = binary::parabolic3(h[0], h[1]) * xpush0(yy*h[2]);
hpcpush(res);
}