Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello, I need your help!!! #1

Open
shamo-dev opened this issue May 28, 2024 · 4 comments
Open

Hello, I need your help!!! #1

shamo-dev opened this issue May 28, 2024 · 4 comments

Comments

@shamo-dev
Copy link

shamo-dev commented May 28, 2024

image

How can we show the text always?
Currently some texts are hiding behind the mesh

@shamo-dev
Copy link
Author

Hello

@jniac
Copy link
Owner

jniac commented May 28, 2024

The fact that the text is behind the mesh is not an issue of the package.
By default texts are drawn taking depth into account. You can disable the depth test as for any shader. If you do so, you may want to ensure that the texts will not be covered by any other transparent mesh by setting the render order:

pth.material.depthTest = false
pth.renderOrder = 100

@shamo-dev
Copy link
Author

I did try so, but got this issue.
image

@shamo-dev
Copy link
Author

const newAngleHelper: any = new PointTextHelper({ charMax: 3 });

newAngleHelper.material.depthTest = false;
newAngleHelper.renderOrder = 100;

I tried with any type to bypass TS context, but still getting issue.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants