Table of Contents

Class CoreTextureSet

Namespace
Map.Rendering
Assembly
MapAssembly.dll

Manages core gameplay-critical textures Province ID, Owner, Color, and Development textures Extracted from MapTextureManager for single responsibility

public class CoreTextureSet
Inheritance
object
CoreTextureSet

Constructors

CoreTextureSet(int, int, bool)

public CoreTextureSet(int width, int height, bool logCreation = true)

Parameters

width int
height int
logCreation bool

Properties

ProvinceColorTexture

public Texture2D ProvinceColorTexture { get; }

Property Value

Texture2D

ProvinceDevelopmentTexture

public RenderTexture ProvinceDevelopmentTexture { get; }

Property Value

RenderTexture

ProvinceIDTexture

public RenderTexture ProvinceIDTexture { get; }

Property Value

RenderTexture

ProvinceOwnerTexture

public RenderTexture ProvinceOwnerTexture { get; }

Property Value

RenderTexture

Methods

ApplyChanges()

NOTE: SetProvinceDevelopment removed - ProvinceDevelopmentTexture is now a RenderTexture updated by GPU compute shaders. Use GradientMapMode for gradient-based colorization.

public void ApplyChanges()

BindToMaterial(Material)

Bind core textures to material

public void BindToMaterial(Material material)

Parameters

material Material

CreateTextures()

Create all core textures

public void CreateTextures()

Release()

Release all textures

public void Release()

SetProvinceColor(int, int, Color32)

Update province color at coordinates

public void SetProvinceColor(int x, int y, Color32 color)

Parameters

x int
y int
color Color32