hi !
In the Philly Example :
- Select the 'Basemap' Layer ( Terrain ). Once selected, in the Inspector under 'Layer Attributes', you see
attr elevation = map_01(brightness, 0.304801, 24.078802) + elevationDelta
that's the attr elevation which gets sampled by the height map's brightness value.
now if you want to use this value in your own code, you have to initialize that attr too ( with the same name of course as in the Inspector )
e.g. in 'Street Construction.cga', there's the Initialization on line 133 : attr elevation = 0
Once you have the attr set up, just point to it via the Connection Editor ( Inspector ).
Ok ?