Commit 3525749d authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[graph] fix the contour program

We had incorrect number of POINTS passed (was 1, should be 2) and so
nodes circles weren't rendered properly.
parent f0760aba
...@@ -21,6 +21,15 @@ export default class NodeContourFastProgram extends AbstractNodeProgram { ...@@ -21,6 +21,15 @@ export default class NodeContourFastProgram extends AbstractNodeProgram {
*/ */
export default class NodeContourFastProgram extends CircleNodeProgram { export default class NodeContourFastProgram extends CircleNodeProgram {
constructor(gl) {
super(gl, vertexShaderSource, fragmentShaderSource, POINTS, ATTRIBUTES);
// NOTE super method above will set POINTS = 1 from CircleNodeProgram
// We need to overwrite this
// https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/471
this.points = POINTS;
this.bind();
}
//process(data: NodeDisplayData, hidden: boolean, offset: number): void { //process(data: NodeDisplayData, hidden: boolean, offset: number): void {
process(data, hidden, offset) { process(data, hidden, offset) {
const array = this.array; const array = this.array;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment