Skip to content
Snippets Groups Projects
Commit 73570cd3 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Correctly included the renderer alpha mask

parent 30921f6c
No related branches found
No related tags found
No related merge requests found
datasets/images/default.jpg

10.9 KiB

File moved
......@@ -4,6 +4,7 @@ import { ForceGraph3D } from "react-force-graph";
import { MODE, DRAG_THRESHOLD_3D } from "../config";
import background from "./background.jpg";
import alphaMask from "./alpha.png";
import { Line2, LineGeometry, LineMaterial } from "three-fatline";
import React from "react";
......@@ -102,9 +103,7 @@ export class GraphRenderer extends React.PureComponent<
// Draw node circle image
const textureLoader = new THREE.TextureLoader();
textureLoader.setCrossOrigin("anonymous");
const imageAlpha = textureLoader.load(
Config.PLUGIN_PATH + "datasets/images/alpha.png"
);
const imageAlpha = textureLoader.load(alphaMask);
const material = new THREE.SpriteMaterial({
//map: imageTexture,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment