Skip to content

@ifc-lite/renderer@1.28.2

Choose a tag to compare

@louistrue louistrue released this 17 Jun 14:14
· 51 commits to main since this release
730490b

Patch Changes

  • #1148 81a6cdf Thanks @louistrue! - Add Camera.getSceneBounds() — an O(1) accessor for the cached scene bounds (the value last passed to setSceneBounds). The viewer uses it to anchor the orbit pivot to the scene centre on a raycast miss / large model, instead of the drifting camera target which made repeated rotation feel untethered (issue #1107).

  • #1161 ef8343b Thanks @louistrue! - Keep internal edges/facets visible on selected objects.

    The selection highlight painted every fragment a single flat blue (color = vec3(0.3, 0.6, 1.0)), discarding all lighting. Because the viewer's "internal lines" are really the per-face shading step of flat-shaded facets, that flat fill collapsed a selected object into one featureless silhouette — creases and bends disappeared the moment it was highlighted (the faint screen-space edge line alone could not stand in for the lost face-shading cue).

    The highlight now re-lights a selection-blue albedo with the scene's own lighting term instead of overwriting it. The base material colour never enters the result (no green-site / red-roof bleed-through, the reason the flat override existed), but the per-face brightness variation is preserved, so internal edges read on the highlight exactly as they do unselected. A multiplicative gain on the lighting luminance keeps sunlit faces at full selection-blue, with a floor/ceiling clamp so shadowed faces only dim and bright scenes never wash out.

  • Updated dependencies [69e5425, bd585c7, 200681b]:

    • @ifc-lite/geometry@2.7.3