Merge pull request #15563 from SimonWalton-HiFi/avatar-banner-emissive

Make avatar-theft banner emissive
This commit is contained in:
Simon Walton 2019-05-17 10:03:37 -07:00 committed by GitHub
commit 024dfbf8b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,7 @@ void AvatarCertifyBanner::show(const QUuid& avatarID) {
entityProperties.setParentJointIndex(CAMERA_MATRIX_INDEX);
entityProperties.setLocalPosition(position);
entityProperties.setDimensions(glm::vec3(1.0f, 1.0f, 0.3f) * scaleFactor);
entityProperties.setEmissive(true);
entityProperties.setRenderLayer(tabletShown ? RenderLayer::WORLD : RenderLayer::FRONT);
entityProperties.getGrab().setGrabbable(false);
QString scriptPath = QUrl(PathUtils::defaultScriptsLocation("")).toString() + AVATAR_THEFT_BANNER_SCRIPT;