Class
- Namespace
- CoreFramework.Tools
Editor window that renders small heatmaps for Cellular/Worley diagnostics: F1, F2, and F2-F1 in both Euclidean (wormy) and Chebyshev (blocky) metrics.
public sealed class CellularHeatmapWindow : EditorWindow
- Inheritance
-
object
- Extension Methods
Fields
_autoFit
If true, previews auto-fit to window width.
[SerializeField]
private bool _autoFit
Field Value
- bool
_autoNormalize
Normalize F1/F2 by observed min/max.
[SerializeField]
private bool _autoNormalize
Field Value
- bool
_bufEdgesC
private float[] _bufEdgesC
Field Value
- float[]
_bufEdgesE
private float[] _bufEdgesE
Field Value
- float[]
_bufEdgesM
private float[] _bufEdgesM
Field Value
- float[]
_bufF1
private float[] _bufF1
Field Value
- float[]
_bufF2
private float[] _bufF2
Field Value
- float[]
_edgeWidth
Visual scaling for F2-F1 edge map.
[SerializeField]
private float _edgeWidth
Field Value
- float
_frequency
Cells-per-world-unit multiplier.
[SerializeField]
private float _frequency
Field Value
- float
_gradient
Color ramp for preview.
[SerializeField]
private Gradient _gradient
Field Value
_height
Output texture height (pixels).
[SerializeField]
private int _height
Field Value
- int
_jitter
0=center; 1=random within cell.
[SerializeField]
private float _jitter
Field Value
- float
_noiseType
Noise type for cell hashing.
[SerializeField]
private NoiseType _noiseType
Field Value
_origin
World-space sampling origin.
[SerializeField]
private float2 _origin
Field Value
_pixelStep
World units per pixel step along X/Y.
[SerializeField]
private float _pixelStep
Field Value
- float
_previewScale
When Auto-Fit is off, each preview width = _width * this scale.
[SerializeField]
private int _previewScale
Field Value
- int
_scroll
Scroll position for the preview list.
private Vector2 _scroll
Field Value
_seed
Hash seed for feature placement.
[SerializeField]
private uint _seed
Field Value
- uint
_texEdgesCheby
private Texture2D _texEdgesCheby
Field Value
_texEdgesEuclid
private Texture2D _texEdgesEuclid
Field Value
_texEdgesManhattan
private Texture2D _texEdgesManhattan
Field Value
_texF1
private Texture2D _texF1
Field Value
_texF2
private Texture2D _texF2
Field Value
_width
Output texture width (pixels).
[SerializeField]
private int _width
Field Value
- int
Methods
Allocate()
Allocate buffers and textures for the configured dimensions.
private void Allocate()
OnEnable()
Initialize defaults and gradient.
private void OnEnable()
OnGUI()
Draw the UI and scrollable previews.
private void OnGUI()
Open()
Menu entry.
[MenuItem("Core Framework/Tools/Cellular Heatmap")]
private static void Open()
Regenerate()
Compute F1/F2 and edges for both metrics, write into textures.
private void Regenerate()