forked from 1b-agent/opencadstudio-upstream
Draw gradient backgrounds as the reference does
The rotation is stored in degrees and turns the bottom-to-top direction counter-clockwise, measured in pixels; a two-colour gradient blends from the bottom colour to the top one across the whole viewport. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8055fa710d
commit
46daf03bc9
2 files changed
+20
-8
No files matched your search
@@ -2982,7 +2982,8 @@ impl Scene {
|
||||
2.0,
|
||||
background.horizon as f32,
|
||||
background.height as f32,
|
||||
background.rotation as f32,
|
||||
// Stored in degrees.
|
||||
(background.rotation as f32).to_radians(),
|
||||
];
|
||||
result
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user