change test shape intensity (now depends on dimming only)

This commit is contained in:
Ruben van de Ven 2025-10-16 18:05:23 +02:00
parent 1361447d0f
commit d06a28051b

View file

@ -180,28 +180,28 @@ pub fn shape_rect(space: LaserSpace, steps: usize) -> LaserPoints {
for i in (0..=steps).rev() {
points.push(laser::Point{
position:[0xFFF as f32 * factor - offset, (0xFFF * i / steps) as f32 * factor - offset],
color: [0.2,0.2,0.2],
color: [1.0,1.0,1.0],
weight: 0,
});
}
for i in (0..steps).rev() {
points.push(laser::Point{
position:[(0xFFF * i / steps) as f32 * factor - offset, 0.0 * factor - offset],
color: [0.2,0.2,0.2],
color: [1.0,1.0,1.0],
weight: 0,
});
}
for i in 0..steps {
points.push(laser::Point{
position:[0.0 * factor - offset, (0xFFF * i / steps) as f32 * factor - offset],
color: [0.2,0.2,0.2],
color: [1.0,1.0,1.0],
weight: 0,
});
}
for i in 0..=steps {
points.push(laser::Point{
position:[(0xFFF * i / steps) as f32 * factor - offset , 0xFFF as f32 * factor - offset],
color: [0.2,0.2,0.2],
color: [1.0,1.0,1.0],
weight: 0,
});
}