Exploring differences in the polyline rendering

This commit is contained in:
Sam Gateau 2019-08-08 17:10:46 -07:00
parent c10607a06d
commit 67a13ee7cd
3 changed files with 8 additions and 6 deletions

View file

@ -63,11 +63,13 @@ void PolyLineEntityRenderer::buildPipelines() {
} }
ItemKey PolyLineEntityRenderer::getKey() { ItemKey PolyLineEntityRenderer::getKey() {
return ItemKey::Builder::transparentShape().withTypeMeta().withTagBits(getTagMask()).withLayer(getHifiRenderLayer()); // return ItemKey::Builder::transparentShape().withTypeMeta().withTagBits(getTagMask()).withLayer(getHifiRenderLayer());
return ItemKey::Builder::opaqueShape().withTypeMeta().withTagBits(getTagMask()).withLayer(getHifiRenderLayer());
} }
ShapeKey PolyLineEntityRenderer::getShapeKey() { ShapeKey PolyLineEntityRenderer::getShapeKey() {
auto builder = ShapeKey::Builder().withOwnPipeline().withTranslucent().withoutCullFace(); // auto builder = ShapeKey::Builder().withOwnPipeline().withTranslucent().withoutCullFace();
auto builder = ShapeKey::Builder().withOwnPipeline().withoutCullFace();
if (_primitiveMode == PrimitiveMode::LINES) { if (_primitiveMode == PrimitiveMode::LINES) {
builder.withWireframe(); builder.withWireframe();
} }

View file

@ -69,7 +69,7 @@ Rectangle {
Culling {} Culling {}
} }
} }
Prop.PropFolderPanel { /* Prop.PropFolderPanel {
label: "Tools" label: "Tools"
panelFrameData: Component { panelFrameData: Component {
Row { Row {
@ -87,7 +87,7 @@ Rectangle {
} }
} }
} }
} }*/
/* Jet.TaskPropView { /* Jet.TaskPropView {
id: "le" id: "le"
jobPath: "" jobPath: ""

View file

@ -69,8 +69,8 @@ function openView() {
} }
pages.addPage('Luci', 'Luci', '../luci.qml', 300, 420, openLuciWindow, closeLuciWindow); pages.addPage('Luci', 'Luci', '../luci.qml', 300, 420, openLuciWindow, closeLuciWindow);
pages.addPage('openEngineLODView', 'Render LOD', '../lod.qml', 300, 400); // pages.addPage('openEngineLODView', 'Render LOD', '../lod.qml', 300, 400);
pages.addPage('openMaterialInspectorView', 'Material Inspector', '../materialInspector.qml', 300, 400, MaterialInspector.setWindow, MaterialInspector.setWindow); // pages.addPage('openMaterialInspectorView', 'Material Inspector', '../materialInspector.qml', 300, 400, MaterialInspector.setWindow, MaterialInspector.setWindow);
pages.open('Luci'); pages.open('Luci');