17
0
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:
2026-10-03 17:35:08 +02:00
parent 3eb1f42e8e
commit 2f417fddcc
12 changed files with 1166 additions and 3 deletions

View File

@@ -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 &