Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/SceneEntity.qml
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 40 | Viewport { | |||
---|---|---|---|---|---|
45 | } | 45 | } | ||
46 | } | 46 | } | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | }, | 49 | }, | ||
50 | InputSettings { } | 50 | InputSettings { } | ||
51 | ] | 51 | ] | ||
52 | 52 | | |||
53 | GridMesh { | | |||
54 | id: gridMesh | | |||
55 | } | | |||
56 | | ||||
57 | LineMesh { | | |||
58 | id: lineMesh | | |||
59 | readonly property string currentFile: sceneRoot.currentFile | | |||
60 | onCurrentFileChanged: readAndRun(currentFile) | | |||
61 | } | | |||
62 | | ||||
63 | PhongMaterial { | | |||
64 | id: material | | |||
65 | ambient: "darkBlue" | | |||
66 | } | | |||
67 | | ||||
68 | PhongMaterial { | | |||
69 | id: lineMaterial | | |||
70 | ambient: "darkGreen" | | |||
71 | } | | |||
72 | | ||||
73 | Entity { | 53 | Entity { | ||
74 | id: gridEntity | 54 | id: gridEntity | ||
75 | components: [ gridMesh, material ] | 55 | components: [ | ||
56 | PhongMaterial { ambient: "darkBlue" }, | ||||
57 | GridMesh {} | ||||
58 | ] | ||||
76 | } | 59 | } | ||
77 | 60 | | |||
78 | Entity { | 61 | Entity { | ||
79 | id: lineEntity | 62 | id: lineEntity | ||
80 | components: [ lineMesh, lineMaterial ] | 63 | components: [ | ||
64 | PhongMaterial { ambient: "darkGreen" }, | ||||
65 | LineMesh { | ||||
66 | readonly property string currentFile: sceneRoot.currentFile | ||||
67 | onCurrentFileChanged: readAndRun(currentFile) | ||||
68 | } | ||||
69 | ] | ||||
81 | } | 70 | } | ||
82 | } | 71 | } |