- Home /
Get vertex data back from shader?
If I modify a vertex on the shader can I get back the modified value? if so, HOW? please :)
Answer by Owen-Reynolds · Dec 20, 2014 at 05:27 AM
I'm a little out of date, but last I knew, it doesn't work that way. Shaders are meant to take data from you, and talk to the screen. The calculated vert positions only exist in some register long enough to be rasterized.
The only real trick to get data back from a shader is with a render texture. And that gives you pixels, and nothing else. That's what "do math on the GPU" takes advantage of.
hey Owen, thanks for the info, i really don't want to limit my audience with compute shaders, but i just don't see how I can do any heavy lifting with just the cpu
Your answer
Follow this Question
Related Questions
Reveal texture at position 0 Answers
Enable Shader Forge Displacement 1 Answer
Material doesn't have a color property '_Color' 4 Answers
How come edititng "_Glossiness" through script doesn't work? 1 Answer
Represent Land 3D Area End 0 Answers