lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.26k stars 778 forks source link

Material/shader for a custom map #356

Closed asatria2 closed 4 years ago

asatria2 commented 4 years ago

Hi I'm trying to create a custom map for use with the new version of lgsvl. I was wondering which type of material/shader should I use for the environment. The CubeTown example is using HDRP/Lit while the SingleLaneRoad is using ShaderGraph/EnvironmentSimulation. Are these for visual only, or do it have some affect on the simulation?

Thank you.

martins-mozeiko commented 4 years ago

For most of the things you should use HDRP/Lit material. EnvironmentSimulation material should be used for roads - it is customization on Lit material to allow to apply road wetness, including puddle reflection. You can still apply Lit material to roads, in such case wetness setting simply won't have any effect on the road surface.

asatria2 commented 4 years ago

@martins-mozeiko thank you for the explanation.