Class TextureTilingBase
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Base class for a texture along with configurable tiling parameters.
[Serializable]
public abstract class TextureTilingBase
- Inheritance
-
TextureTilingBase
- Derived
- Inherited Members
- Extension Methods
Remarks
This class is meant for inspector values, especially ones that help configure shaders, such as in post-processing code.
It provides scale and offset values for UV tiling. It can optionally adjust the horizontal scale to match the current screen aspect ratio.
Properties
- CalculatedTiling
Gets the effective tiling values, optionally adjusting the horizontal scale based on screen aspect ratio.
- Tiling
Gets the tiling scale and offset combined into a single vector in the format: (scale.x, scale.y, offset.x, offset.y).
- TilingOffset
Gets the tiling offset.
- TilingScale
Gets the tiling scale.