mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
feat(roads): road node with generated lanes, surface and markings
This commit is contained in:
@@ -145,6 +145,9 @@ public:
|
||||
// replaces the renderable geometry handle (used by the editor when it re-uploads terrain geometry)
|
||||
void
|
||||
geometry( gfx::geometry_handle const &Handle );
|
||||
// set lighting (used by generated geometry painted with plain colour)
|
||||
void
|
||||
lighting( lighting_data const &Lighting );
|
||||
// data access
|
||||
shapenode_data const &
|
||||
data() const;
|
||||
@@ -176,6 +179,12 @@ void
|
||||
shape_node::geometry( gfx::geometry_handle const &Handle ) {
|
||||
m_data.geometry = Handle;
|
||||
}
|
||||
// set lighting
|
||||
inline
|
||||
void
|
||||
shape_node::lighting( lighting_data const &Lighting ) {
|
||||
m_data.lighting = Lighting;
|
||||
}
|
||||
// data access
|
||||
inline
|
||||
shape_node::shapenode_data const &
|
||||
|
||||
Reference in New Issue
Block a user