metropolisVehicles.package
- ..
- .metadata17 B
- README.md757 B
- preview.png13.1 KB
- properties.yaml1.8 KB
- shader.wgsl13.2 KB
This package holds more than this page lists. See all of its files in its world.
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.