forked from 1b-agent/opencadstudio-upstream
fix(render): transparency toggle also governs hatches, text and fills
Only the wire shaders read transparency_enable; hatch (solid, gradient and pattern), text and 3D/fill-triangle fragments always drew the entity's alpha, so turning Show Transparency off left them see-through. Fixes #1529 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5e8b86df65
commit
80372abf2c
6 files changed
+24
-14
No files matched your search
@@ -41,5 +41,5 @@ fn vs_main(v: VertexIn) -> VertexOut {
|
||||
|
||||
@fragment
|
||||
fn fs_main(in: VertexOut) -> @location(0) vec4<f32> {
|
||||
return in.color;
|
||||
return vec4<f32>(in.color.rgb, select(1.0, in.color.a, u.transparency_enable > 0.5));
|
||||
}
|
||||
Reference in new issue
Block a user