mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-03 00:04:47 -04:00
Compare commits
3 Commits
a00547a292
...
faf1b86967
Author | SHA1 | Date | |
---|---|---|---|
|
faf1b86967 | ||
|
389e8f8217 | ||
|
01ae564e4e |
@ -878,6 +878,14 @@ void Qgs3DMapScene::finalizeNewEntity( Qt3DCore::QEntity *newEntity )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ( QgsPoint3DBillboardMaterial *billboardMaterial = qobject_cast<QgsPoint3DBillboardMaterial *>( material ) )
|
||||||
|
{
|
||||||
|
Qt3DCore::QEntity *entity = qobject_cast<Qt3DCore::QEntity *>( billboardMaterial->parent() );
|
||||||
|
if ( entity && !entity->components().contains( transparentLayer ) )
|
||||||
|
{
|
||||||
|
entity->addComponent( transparentLayer );
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// This handles the phong material with data defined properties, the textured case and point (instanced) symbols.
|
// This handles the phong material with data defined properties, the textured case and point (instanced) symbols.
|
||||||
|
@ -7,9 +7,8 @@ out vec4 fragColor;
|
|||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
fragColor = texture(tex0, vec2(UV.x, 1.0f - UV.y));
|
fragColor = texture(tex0, vec2(UV.x, 1.0f - UV.y));
|
||||||
|
|
||||||
if (fragColor.a < 0.5)
|
if (fragColor.a < 0.01)
|
||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 5.5 KiB |
Loading…
x
Reference in New Issue
Block a user