iPad GLSL. From within a fragment shader how do I get the surface - not vertex - normal
Posted
by dugla
on Stack Overflow
See other posts from Stack Overflow
or by dugla
Published on 2010-03-26T13:14:30Z
Indexed on
2010/04/09
2:13 UTC
Read the original article
Hit count: 461
Is it possible to access the surface normal - the normal associated with the plane of a fragment - from within a fragment shader? Or perhaps this can be done in the vertex shader?
Is all knowledge of the associated geometry lost when we go down the shader pipeline or is there some clever way of recovering that information in either the vertex of fragment shader?
Thanks in advance.
Cheers,
Doug
twitter: @dugla
© Stack Overflow or respective owner