private static readonly int _DstBlend | Shader property ID for _DstBlend. |
private static readonly int _DstBlendAlpha | Shader property ID for _DstBlendAlpha. |
private static readonly int _MaskColor | Shader property ID for _MaskColor, set to backgroundColor. |
private static readonly int _OffsetScale | Shader property ID for _OffsetScale, the position and scale of each blit. |
private static readonly int _SrcBlend | Shader property ID for _SrcBlend. |
private static readonly int _SrcBlendAlpha | Shader property ID for _SrcBlendAlpha. |
private Color backgroundColor | Colour passed to the shader as the mask colour. |
private Shader baseShader | Shader used for the blit material. |
private Texture2D hereIcon | Texture drawn at the board's own position. |
private float hereIconScale | Scale of the you-are-here icon. Default 0.02. |
private bool isAlwaysRendering | Serialized flag that is never read. |
private bool isRenderQueued | True while a delayed render is pending. |
private bool isVisible | Whether previewRenderer is currently seen by a camera. |
private MapLandmarkDisplay landmarkDisplay | Gives the lists of markers to draw below and above the map mask. |
private Texture2D map | The base map texture. |
private MapBoard mapBoard | The MapBoard this draws; gives the offset, scale and active map pieces. |
private bool needsToRender | Set when a change came in while hidden, so it renders when next visible. |
private Renderer previewRenderer | Renderer whose material shows the render texture. |
private RenderTexture rt | The render texture the map is drawn into. |
private Vector2Int rtSize | Size of the render texture. Default 2048 by 2048. |
private Vector2Int rtSizeAndroid | Serialized size for Android (1024 by 1024). Never read in this build. |
private bool wasDestroyed | Set in OnDestroy so a delayed RenderMap does nothing. |