change test shape intensity (now depends on dimming only)
This commit is contained in:
parent
1361447d0f
commit
d06a28051b
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue