- Home /
Question by
stupidoldpoo · May 20, 2017 at 08:49 AM ·
texturemathspherecalculate
Find position of pixel on sphere given position of pixel on texture
Textures are shaped like squares, but Unity puts them on the sphere. If you know the position of a pixel on the texture, how can you find the position of that pixel on the sphere with that texture?
Comment
I'm looking for the same answer, please tell me if you got something ?
@E$$anonymous$$em32 I think the answer is here.
Answer by Bunny83 · Dec 17, 2017 at 03:54 PM
This question is basically a duplicate of this one.
THank you very much! I did not know there was any function RaycastHit.textureCoord, I will take a look at all that code.
Your answer
Follow this Question
Related Questions
Material/Texture on the Inside of a Sphere 5 Answers
IcoSphere vs. Cube Sphere 0 Answers
Create Material with gradient on a sphere? 2 Answers
How would I calculate the number of lines a string will be 3 Answers