- Home /
Question by
Sasmaster · Jan 08, 2013 at 08:22 PM ·
shaderpost-processing
Fragment position in CG post-process shaders
I come from GLSL world and for some post process effects I need to retrieve fragment position x and y.In GLSL I do it using :
gl_FragCoord.xy
Now , in CG , based on this article I should have access to VPOS.But I haven't found any Unity docs which say how to get it. Shouldn't vert_img supply it?What does vert_img.pos mean? Position of what and in what space?How do I get VPOS using CG ?
Thanks.
Comment
Your answer
Follow this Question
Related Questions
Turning a found material shader into a post-processing effect? 0 Answers
How to force the compilation of a shader in Unity? 5 Answers
What is the meaning of a vertex shader for a post-processing shader? 1 Answer
How do you use a shader file once written? 1 Answer
How do you choose/set the texture used in shader properties? 1 Answer