Class
- Namespace
- CoreFramework.Tools
public class SquirrelNoiseHeatMapWindow : EditorWindow
- Inheritance
-
object
- Extension Methods
Fields
_autoFit
If true, previews auto-fit to window width.
[SerializeField]
private bool _autoFit
Field Value
- bool
_buf1D32
private float[] _buf1D32
Field Value
- float[]
_buf1D64
private float[] _buf1D64
Field Value
- float[]
_buf2D32
private float[] _buf2D32
Field Value
- float[]
_buf2D64
private float[] _buf2D64
Field Value
- float[]
_buf3D32
private float[] _buf3D32
Field Value
- float[]
_buf3D64
private float[] _buf3D64
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
_noiseType
Noise type for cell hashing.
[SerializeField]
private NoiseType _noiseType
Field Value
_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
_tex1D32
private Texture2D _tex1D32
Field Value
_tex1D64
private Texture2D _tex1D64
Field Value
_tex2D32
private Texture2D _tex2D32
Field Value
_tex2D64
private Texture2D _tex2D64
Field Value
_tex3D32
private Texture2D _tex3D32
Field Value
_tex3D64
private Texture2D _tex3D64
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/Squirrel Noise Heatmap")]
private static void Open()
Regenerate()
Compute F1/F2 and edges for both metrics, write into textures.
private void Regenerate()