Skip to content

PaintTarget

public struct PaintTarget

Namespace Chassis.Api

Added in 1.7.0

One material slot that takes the body paint: a renderer and the index into its materials. Chassis paints VehicleColor.BodyMeshes unless a mod names its own targets with ChassisApi.SetPaintTargets. A Secondary slot takes the second paint (“paint2”) instead and keeps its own material without one. A Flat slot drops its colour texture while painted (the normal map stays), for a part whose texture is dark or two-toned: the paint multiplies the texture, so it would show darker than chosen.

public Renderer Renderer

Added in 1.7.0

public int MaterialIndex

Added in 1.7.0

public bool Secondary

Added in 1.7.0

public bool Flat

Added in 1.7.0

public PaintTarget(Renderer renderer, int materialIndex)

Added in 1.7.0

public PaintTarget(Renderer renderer, int materialIndex, bool secondary)

Added in 1.7.0