Log inGet started
Package

paint.shader

README.md

paint

This shader applies cel-shaded paint to vehicle models, handling the entire vehicle with a single material. It uses uv.x slots to identify different parts of the vehicle (e.g., shell, trim, tires, lamps) and applies distinct visual properties to each. Vehicle-specific details like livery, lamp states, and wear are passed through instance data (four shader lanes). The shader simulates lighting based on the time of day (from painterly.core or the engine's sun), applying effects like lacquer sheen, metallic glint, and glass transparency. It also incorporates dirt and damage effects on painted panels. This shader is primarily used by the metropolisVehicles.look module to render the visual appearance of vehicles in the Metropolis world.