Skip to main content

PlatformLightsAndroidUtilities

A static class in Root.Township, Alta.Lighting.

Android helpers for PlatformLight fake lights: the fake light material and vertex coloured copies of light meshes, cached by colour.

Fields​

MemberWhat it is
static Material baseFakeLightMaterialBacking field for BaseFakeLightMaterial.
5 private and internal fields
MemberWhat it is
private static Dictionary<int, Mesh> coloredMeshesBaked meshes by mesh and colour hash.
private const string PlatformLightMeshesFolderEditor asset path for baked meshes. Not used in this build.
private const string PlatformLightMeshesFolderNameFolder name for baked meshes. Not used in this build.
private const string TemporaryFolderEditor temporary asset folder. Not used in this build.
private static List<Color> workingColorsReused colour list for baking.

Properties​

MemberWhat it is
static Material BaseFakeLightMaterial { get; }Material using the Hidden/FakeLight shader, created on first use.

Methods​

MemberWhat it is
static Mesh GetMesh(Mesh newMesh, Color lightColor, float lightIntensity)Returns a cached copy of the mesh coloured for the light, baking it the first time.
1 private and internal method
MemberWhat it is
private static Mesh BakeMesh(Mesh newMesh, Color lightColor, float lightIntensity)Copies the mesh and sets every vertex colour from the light's colour and intensity.