improved the wall/floor textures in 3D modes

This commit is contained in:
Zeno Rogue 2021-02-04 21:17:28 +01:00
parent dc20dfe648
commit f224b2fc70
1 changed files with 4 additions and 2 deletions

View File

@ -1138,12 +1138,14 @@ void draw_shape_for_texture(floorshape* sh) {
queuecurve(shiftless(Id), 0x40404000 + sh->fstrength * 192/10, 0, PPR::LINE);
}
for(int i=0; i<100; i++) {
for(int i=0; i<1000; i++) {
hyperpoint h1 = hpxy(sd * (6*randd()-3), sd * (6*randd()-3));
hyperpoint h2 = hpxy(sd * (6*randd()-3), sd * (6*randd()-3));
ld d = hdist(h1, h2);
hyperpoint h3 = h1 + (h2-h1) /d * min(d, .1);
for(int a=0; a<4; a++) {
curvepoint(eupush(gx,gy) * eupush(spin(90*degree*a) * h1) * C0);
curvepoint(eupush(gx,gy) * eupush(spin(90*degree*a) * h2) * C0);
curvepoint(eupush(gx,gy) * eupush(spin(90*degree*a) * h3) * C0);
queuecurve(shiftless(Id), 0x10101010, 0, PPR::LINE);
}
}