From 4444fa6bf11add6d495948ef7009f51ed05badfb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 22 Nov 2020 12:34:44 +0100 Subject: [PATCH] floor textures:: scratches --- floorshapes.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/floorshapes.cpp b/floorshapes.cpp index 39280ab5..8a90583e 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -1138,6 +1138,16 @@ 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++) { + 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]; ftv.tvertices.clear(); ftv.texture_id = floor_textures->renderedTexture;