Define render object structure for road surfaces
This commit is contained in:
@@ -267,6 +267,10 @@ interface RuntimeTerrainRenderObjects {
|
|||||||
distantMaterial: Material;
|
distantMaterial: Material;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface RuntimeRoadSurfaceRenderObjects {
|
||||||
|
mesh: Mesh<BufferGeometry, Material>;
|
||||||
|
}
|
||||||
|
|
||||||
function createRuntimeGeometryBrush(brush: RuntimeBoxBrushInstance): Brush {
|
function createRuntimeGeometryBrush(brush: RuntimeBoxBrushInstance): Brush {
|
||||||
const faces = Object.fromEntries(
|
const faces = Object.fromEntries(
|
||||||
Object.entries(brush.faces).map(([faceId, face]) => [
|
Object.entries(brush.faces).map(([faceId, face]) => [
|
||||||
|
|||||||
Reference in New Issue
Block a user