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:
parent
7ce12ef63b
commit
16c4108a8d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user