const render::ShapeKey Image3DOverlay::getShapeKey() { auto builder = render::ShapeKey::Builder().withoutCullFace().withDepthBias(); if (_emissive) { builder.withUnlit(); } if (getAlpha() != 1.0f) { builder.withTranslucent(); } return builder.build(); }
const render::ShapeKey Shape3DOverlay::getShapeKey() { auto builder = render::ShapeKey::Builder(); if (isTransparent()) { builder.withTranslucent(); } if (!getIsSolid()) { builder.withUnlit().withDepthBias(); } return builder.build(); }
const render::ShapeKey Circle3DOverlay::getShapeKey() { auto builder = render::ShapeKey::Builder().withoutCullFace().withUnlit(); if (getAlpha() != 1.0f) { builder.withTranslucent(); } if (!getIsSolid()) { builder.withUnlit().withDepthBias(); } return builder.build(); }