コード例 #1
0
ファイル: Image3DOverlay.cpp プロジェクト: AlphaStaxLLC/hifi
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();
}
コード例 #2
0
ファイル: Shape3DOverlay.cpp プロジェクト: SeijiEmery/hifi
const render::ShapeKey Shape3DOverlay::getShapeKey() {
    auto builder = render::ShapeKey::Builder();
    if (isTransparent()) {
        builder.withTranslucent();
    }
    if (!getIsSolid()) {
        builder.withUnlit().withDepthBias();
    }
    return builder.build();
}
コード例 #3
0
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();
}