1
0
Fork 0

Update documentation of LINEAR_FEATURE_LIST

This commit is contained in:
Stuart Buchanan 2023-12-29 13:09:22 +00:00
parent 9dc128b9c6
commit 4238bec6fd
2 changed files with 9 additions and 5 deletions

View file

@ -83,8 +83,8 @@ light-edge-color/r ... : Light colour, with r,g,b,a properties. Default 1.0, re
line-feature-tex-x0 : x0 texture coordinate for WS3.0 line features
line-feature-tex-x1 : x1 texture coordinate for WS3.0 line features
line-feature-offset-m : vertical offset of line feature from underlying mesh.
May be used to ensure roads go over rivers
line-feature-offset-m : vertical offset of line feature from underlying mesh in meters.
May be used to ensure roads go over rivers. Defaults to 1m.
ambient : The ambient light colour for the material, specified as separate
r, g, b, a components (default: all color components 0.2, alpha 1.0).

View file

@ -515,9 +515,10 @@ Syntax
Where:
- <filename> is the name of a file containing linear feature positions, may be a .gz file
- <material name> is the name of the material that will be used to render.
- <material name> is the name of the material that will be used to render the feature.
This can use an Effect as normal, e.g. for road traffic.
See README.materials for details on configuring the random vegetation parameters.
See README.materials for details on configuring the linear feature parameters.
The referenced <filename> (in the example road.txt.gz) contains lines of the form
@ -528,7 +529,10 @@ Where:
- W is the feature width in meters.
- ATTR is an integer value used to store packed attributes (e.g. bitwise. Bit 1 is for lit)
- A,B,C,D are float values used to store attributes (currently unused)
- lonN, latN are lon/lat pairs on the center of the line feature. There must be at least two pairs
- lonN, latN are lon/lat pairs on the center of the line feature. There must be at least two pairs.
The linear feature will be built on top of the terrain, offset by the line-feature-offset-m parameter
of the material definition.
3.12 OBJECT_LIGHT
------------------