support of transparent image planes

This commit is contained in:
wmayer
2019-11-09 15:11:18 +01:00
parent be69317c64
commit 4b604c677b

View File

@@ -31,6 +31,7 @@
# include <Inventor/nodes/SoFaceSet.h>
# include <Inventor/nodes/SoShapeHints.h>
# include <Inventor/nodes/SoImage.h>
# include <Inventor/nodes/SoMaterial.h>
# include <Inventor/nodes/SoTextureCoordinate2.h>
# include <Inventor/nodes/SoTexture2.h>
# include <QFile>
@@ -92,6 +93,8 @@ void ViewProviderImagePlane::attach(App::DocumentObject *pcObj)
texture->model = SoTexture2::MODULATE;
planesep->addChild(texture);
planesep->addChild(pcShapeMaterial);
// plane
pcCoords->point.set1Value(0,0,0,0);
pcCoords->point.set1Value(1,1,0,0);