Class CoreTextureSet
Manages core gameplay-critical textures Province ID, Owner, Color, and Development textures Extracted from MapTextureManager for single responsibility
public class CoreTextureSet
- Inheritance
-
objectCoreTextureSet
Constructors
CoreTextureSet(int, int, bool)
public CoreTextureSet(int width, int height, bool logCreation = true)
Parameters
widthintheightintlogCreationbool
Properties
ProvinceColorTexture
public Texture2D ProvinceColorTexture { get; }
Property Value
ProvinceDevelopmentTexture
public RenderTexture ProvinceDevelopmentTexture { get; }
Property Value
ProvinceIDTexture
public RenderTexture ProvinceIDTexture { get; }
Property Value
ProvinceOwnerTexture
public RenderTexture ProvinceOwnerTexture { get; }
Property Value
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
materialMaterial
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
xintyintcolorColor32