google / google/neuroglancer

How to increase line depth in shader?

Open
#289 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

I drew a line using this as the shader:

void setEndpointMarkerBorderColor(vec4 rgba);
void setLineWidth(float widthInScreenPixels);
void setEndpointMarkerSize(float diameter);
void main() {
setColor(defaultColor());
setEndpointMarkerSize(3.0);
setLineWidth(3.0);
setEndpointMarkerBorderColor(vec4(0,0,0,0));
}

Is there a way increase the depth/height of the line? Basically, whenever I'm scrolling along the z-axis, the line I drew starts disappearing the further from the original z-point I am, but I just want the line to always appear. I can't seem to find anything in line.ts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.