Add tests for road edges (curbs) when building runtime scenes
This commit is contained in:
@@ -1956,7 +1956,16 @@ describe("buildRuntimeSceneFromDocument", () => {
|
|||||||
falloff: 0.5,
|
falloff: 0.5,
|
||||||
heightOffset: 0.03,
|
heightOffset: 0.03,
|
||||||
terrainConform: true,
|
terrainConform: true,
|
||||||
materialId: "ground_sand_300x300"
|
materialId: "ground_sand_300x300",
|
||||||
|
edges: {
|
||||||
|
left: {
|
||||||
|
enabled: true,
|
||||||
|
kind: "curb",
|
||||||
|
width: 0.3,
|
||||||
|
height: 0.2,
|
||||||
|
materialId: "stone_flooring_200x200"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const runtimeScene = buildRuntimeSceneFromDocument({
|
const runtimeScene = buildRuntimeSceneFromDocument({
|
||||||
@@ -1969,6 +1978,9 @@ describe("buildRuntimeSceneFromDocument", () => {
|
|||||||
expect(runtimeScene.paths[0]?.road.material?.id).toBe(
|
expect(runtimeScene.paths[0]?.road.material?.id).toBe(
|
||||||
"ground_sand_300x300"
|
"ground_sand_300x300"
|
||||||
);
|
);
|
||||||
|
expect(runtimeScene.paths[0]?.road.edges.left.material?.id).toBe(
|
||||||
|
"stone_flooring_200x200"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("includes authored foliage layers, prototypes, and terrain masks for derived rendering", () => {
|
it("includes authored foliage layers, prototypes, and terrain masks for derived rendering", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user