Skip to content

Releases: hongfaqiu/cesium-wind-layer

[email protected]

08 Nov 09:38
Compare
Choose a tag to compare

Minor Changes

  • feat(wind-layer): refactor lineWidth to support min-max range

    BREAKING CHANGE: lineWidth option now requires min-max range object instead of single number

    • Change lineWidth type from number to { min: number, max: number }
    • Set default lineWidth range to { min: 1, max: 2 }
    • Update shader to support dynamic line width based on particle speed
    • Update types and documentation
    • Update example to demonstrate new lineWidth configuration
    • Add lineWidth range control in ControlPanel component

    This change allows for more dynamic and visually appealing particle trails by varying
    the line width based on wind speed, similar to how line length works.

[email protected]

06 Nov 14:59
Compare
Choose a tag to compare

Minor Changes

  • feat: add line length range control

    • Add lineLength option to control particle trail length range
    • Change lineLength type from number to { min: number; max: number }
    • Set default lineLength range to { min: 20, max: 100 }
    • Set default lineWidth to 5.0
    • Update control panel UI to support lineLength range adjustment
    • Add different lineLength ranges for wind and ocean data

[email protected]

06 Nov 13:31
0ce768b
Compare
Choose a tag to compare

Minor Changes

  • 770381e: feat: add dynamic option to control particle animation

    • Add new dynamic option to WindLayerOptions to control particle animation state
    • Add dynamic switch control in ControlPanel component
    • Set default value of dynamic option to true
    • Update types and documentation

    This change allows users to toggle between animated and static particle states.

Patch Changes

  • 7fc0dbf: fix: dont limit cesium version

[email protected]

01 Nov 11:52
Compare
Choose a tag to compare

Patch Changes

  • fix: normalize particle speed and length across different refresh rates

    • Add frameRateAdjustment uniform to normalize particle movement
    • Adjust trail length calculation based on frame rate
    • Ensure consistent particle behavior regardless of display refresh rate

[email protected]

01 Nov 06:58
Compare
Choose a tag to compare

Patch Changes

  • fix: reduce unnecessary texture recreation

[email protected]

01 Nov 06:32
Compare
Choose a tag to compare

Patch Changes

  • fix: optimize frame rate calculation and shader performance

    • Remove redundant interval uniform from shader
    • Calculate interval directly in shader to reduce data transfer
    • Only update frame rate when FPS > 50 to avoid performance degradation
    • Replace requestAnimationFrame with setInterval for stable frame rate updates

[email protected]

31 Oct 10:07
Compare
Choose a tag to compare

Patch Changes

  • fix: frame rate calculate

[email protected]

30 Oct 07:29
Compare
Choose a tag to compare

Patch Changes

  • fix: resolve options deep copy issue in deepMerge function

[email protected]

30 Oct 06:50
Compare
Choose a tag to compare

Patch Changes

  • fix: update readme, add displayRange param

[email protected]

30 Oct 04:53
Compare
Choose a tag to compare

Minor Changes

  • feat: add domain and displayRange options for wind layer
    Changes:

    1. domain controls the rendering range for color mapping
    2. displayRange controls particle visibility
    3. Both options fallback to data's min/max when undefined
    4. Early visibility check in fragment shader for better performance