Since ordinary ordinary game ob jects are used with a mesh renderer component, you can use your own materials and shaders or the Unity shaders.
The package does come with a set of shaders taking advantage of the various UV controls for roads and side objects. For roads you can set additional uv data on the uv4 channel. For the shape type of side object you can set vertex colors and also additional uv data on the uv4 channel.
The shaders in the package are example of how you use this data in shaders.
- EasyRoads3D - Unity 5 Standard: This is a copy of the Unity Standard shader using an offset as a way to deal with z-fighting. Offsets also prevent the road from disappearing in the terrain further away from the cam when the terrains LOD system kicks in.
- ER Dual Blend UV1: Click this button to switch back to Edit Mode.
- ER Blend UV4: This is very similar as below but cutout instead of decal:blend.
- ER Dual Road Blend: I Connector.
- ER Road Decal Splat Blend: Blends additional textures with the main texture using a control texture and UV4 detail data.
- ER Road Detail: Blends a detail texture with the main texture using UV4 detail data.
- ER Road Transparency: Full transparency supporting shadows based on decal blend. The shadows are projected in a similar way as they would have done on the terrain below the road.
- Misc / ER Race Track: This blends a second texture with the main texture using uv4 data and it also blends a smoothness texture. This can be used to define the perfect racing line on a racre track.
- Misc / ER Road Splat 4 UV4: This shader blends the track texture with the simulated terrain textures and terrain splatmap. It can be used on a terrain mesh overlay with more geometry detail.
- Terrain / ER Terrain Mask: This is for objects used as terrain masks.
- Terrain / ER Custom Terrain: This is a slightly modified version of the Unity terrain shader supporting holes using a mask object.
- Tesselation / ER Terrain Mesh Tesselation:This shader blends two textures with the simulated terrain textures and terrain splatmap. Tesselation is used on the two textures. It can be used on a terrain mesh overlay like the rock wall in the demo project.
|