Class GlowStrengthNightModifier
- Namespace
- Nautilus.Utility.MaterialModifiers
- Assembly
- Nautilus.dll
A material modifier that changes the glow strength of materials with options related to the time of day.
public class GlowStrengthNightModifier : MaterialModifier
- Inheritance
-
GlowStrengthNightModifier
- Inherited Members
- Extension Methods
Constructors
GlowStrengthNightModifier(float)
Changes the glow strength of the materials when rendered at nighttime.
public GlowStrengthNightModifier(float nightGlowStrength)
Parameters
nightGlowStrength
float- New nighttime glows strength. Corresponds to the '_GlowStrengthNight' property.
Remarks
Default glow strength values are 1.
GlowStrengthNightModifier(float, float)
Changes the glow strength of the materials when rendered at daytime and nighttime, individually.
public GlowStrengthNightModifier(float nightGlowStrength, float dayGlowStrength)
Parameters
nightGlowStrength
float- Nighttime glow strength. Corresponds to the '_GlowStrengthNight' property.
dayGlowStrength
float- Daytime glow strength. Corresponds to the '_GlowStrength' property.
Remarks
These two properties do not interfere with each other, aside from at "dawn" and "dusk" when a mix of the two is used.
Methods
EditMaterial(Material, Renderer, int, MaterialType)
Applies changes to the specified material.
public override void EditMaterial(Material material, Renderer renderer, int materialIndex, MaterialUtils.MaterialType materialType)
Parameters
material
Materialrenderer
RenderermaterialIndex
intmaterialType
MaterialUtils.MaterialType