Question by
Rofuera · Apr 01, 2020 at 06:10 PM ·
scripting problemshadermeshconvex
How to get pixel's coordinates from touch?
Hello!
I'm using my shader, that combines two textures, based on mask texture. I need to make some of mask's pixels "disappear" (Color.clear), but because my object's Mesh Collider is Convex, I can not use RaycastHit.textureCoord.
My question is - "Is there a way to use RaycastHit.textureCoord with convex mesh" or "what other methods I can use to get texture's coordinates from Touch?"
Thank You!
Comment
Your answer
Follow this Question
Related Questions
Why is my mesh not showing outside of an area? 0 Answers
strange grass and soft partcile glitch, example image attached. 0 Answers
How can i activate a script on a character when entering in a trigger zone ? 1 Answer
Material.SetFloat not updating. 0 Answers
How to make shader not affect anything between it and camera? 0 Answers