Class VistaLib
Provides low-level rendering helpers backed by Vista shaders and compute shaders.
public static class VistaLib
- Inheritance
-
VistaLib
- Inherited Members
Remarks
These helpers are small runtime building blocks used to generate derived textures such as object-space normals, solid-color fills, and value-remapped masks without duplicating shader setup code at each call site.
Methods
- CalculatePointGrid(Vector4, Vector2, out Vector2)
Computes the grid layout for a uniform set of points covering the given world bounds at the given spacing.
- ExtractNormalMapOS(RenderTexture, Texture, Vector3)
Generates an object-space normal map from a height map texture.
- FillColor(RenderTexture, Color)
Fills an entire render texture with a uniform color.
- GeneratePoints(ComputeBuffer, Vector4, Vector2, Vector2, Vector2Int)
Fills a position buffer with a uniform grid of points using the layout produced by CalculatePointGrid(Vector4, Vector2, out Vector2).
- Remap(RenderTexture, Texture, float, float)
Remaps the normalized values of an input texture into a caller-defined output range.
- Smooth(RenderTexture, RenderTexture, Texture, int)
Applies Vista's iterative smooth filter to a render texture in-place using a temporary ping-pong texture.
- SmoothProgressive(RenderTexture, RenderTexture, Texture, int, int)
Applies Vista's iterative smooth filter progressively and yields after a configurable number of iterations.
- Spread(ComputeBuffer, ComputeBuffer, Texture, float, int, bool, int, int)
Spreads each source point into a number of jittered copies and writes them to a destination buffer.
- ThinOut(ComputeBuffer, ComputeBuffer, Texture, float, int, int)
Removes points from a set using a mask, where a blacker mask value gives a higher chance of removal.