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

Results giving weird look after using your shader. #30

Open
bodduavinash opened this issue Mar 21, 2021 · 4 comments
Open

Results giving weird look after using your shader. #30

bodduavinash opened this issue Mar 21, 2021 · 4 comments

Comments

@bodduavinash
Copy link

Results giving weird look after using your shader.

I have followed the instructions given in readme file, still giving weird looks.

Please see the below screenshot, for better understanding.

image

Kindly help me solve this issue.

Appreciate if anyone faced and help me for this issue.

@ColinLeung-NiloCat
Copy link
Owner

turn on _ProjectionAngleDiscardEnable

@bodduavinash
Copy link
Author

bodduavinash commented Mar 21, 2021

@ColinLeung-NiloCat

Thank you for the response,

I've turned on _ProjectionAngleDiscardEnable, below is the result after setting threshold value to 0.02, but the bottom is not projecting right.

image

image

My expectation result should be something below.

image

Is there any other settings do I need to apply? Kindly help me solve this issue.

@ColinLeung-NiloCat
Copy link
Owner

rotate the decal gameobject a bit

@bodduavinash
Copy link
Author

bodduavinash commented Mar 21, 2021

@ColinLeung-NiloCat
Yes, I have tried X rotation about 20 units, then it started showing better results. Thank you for the quick response and help.

image

I am implementing FPS shooter game.

If I shoot straight wall or ground alone it works well, but if I shoot corner of both straight wall or ground, then how can I detect that bullet is hitting at corner? in other words, when should I rotate if the bullet is hitting the corner? Is there any workaround for this? Kindly help me to solve this issue.

Thanks,
Avinash.

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