mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
floor textures:: scratches
This commit is contained in:
parent
828753cede
commit
4444fa6bf1
@ -1138,6 +1138,16 @@ void draw_shape_for_texture(floorshape* sh) {
|
|||||||
queuecurve(shiftless(Id), 0x40404000 + sh->fstrength * 192/10, 0, PPR::LINE);
|
queuecurve(shiftless(Id), 0x40404000 + sh->fstrength * 192/10, 0, PPR::LINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(int i=0; i<100; i++) {
|
||||||
|
hyperpoint h1 = hpxy(sd * (6*randd()-3), sd * (6*randd()-3));
|
||||||
|
hyperpoint h2 = hpxy(sd * (6*randd()-3), sd * (6*randd()-3));
|
||||||
|
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);
|
||||||
|
queuecurve(shiftless(Id), 0x10101010, 0, PPR::LINE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
auto& ftv = floor_texture_vertices[sh->id];
|
auto& ftv = floor_texture_vertices[sh->id];
|
||||||
ftv.tvertices.clear();
|
ftv.tvertices.clear();
|
||||||
ftv.texture_id = floor_textures->renderedTexture;
|
ftv.texture_id = floor_textures->renderedTexture;
|
||||||
|
Loading…
Reference in New Issue
Block a user