- Home /
Passing values from Shader to C# script
Hello Guys, I am making a program in which I need to Raycast in the shader and pass values of collision(distance from camera) to the C# script. I need to cast 1000 rays from camera to distance of 50 metres. Each ray angle is different by 0.25 degrees.
Please help. Any help is appreciated
Comment
Your answer
Follow this Question
Related Questions
Raycasting 1000 times 1 Answer
How can I test if there is a collision near my rigidbody? 2 Answers
How to prevent a sphere from jumping? 0 Answers
Can't raycast on Character Controller? 1 Answer
Trouble with RayCast, rigid body and the colliders tag 0 Answers