mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-15 05:09:35 +08:00
239c41eeb0
- Updated shader grid rendering to intersect the grid plane in view space and draw it with a single full-screen triangle. - Added shader grid bounds to camera Z-fit, so the grid is visible in empty views and after object display without an extra vfit. - Fixed shader grid echo to use the active shader grid plane, effective scale, bounds and clip-safe display point. - Kept the viewer-managed CPU grid path separate from the per-view shader grid path and preserved CPU grid type/mode handling in vgrid. - Added grid tests for empty/no-vfit visibility and perspective rendering without mirrored fragments.
23 lines
499 B
Plaintext
23 lines
499 B
Plaintext
puts "=================================================================="
|
|
puts "GPU shader grid keeps foreground plane semantics in perspective view"
|
|
puts "=================================================================="
|
|
|
|
pload MODELING VISUALIZATION
|
|
|
|
vclear
|
|
vinit View1 w=400 h=400
|
|
vaxo
|
|
|
|
box b 10 10 10
|
|
vdisplay b -dispMode 1
|
|
vfit
|
|
|
|
vgrid -type gpu -size 100 100 -drawAxis 0
|
|
vcamera -persp
|
|
vdump $imagedir/${casename}_persp.png
|
|
|
|
vrotate 0 0 0.5
|
|
vdump $imagedir/${casename}_rotated.png
|
|
|
|
vgrid off
|