I am working on my own filter, written in FLSL. It5 gos well, the language is great! My filter is almost done, but I have one last question to finish it.
How do I get a global normal for a fragment? It was easy to get a local one:
input NORMAL no;
...
interpolated float4 iNO;
private void v_my()
{
iNO = no;
}
private float4 f_terrain(){
return iNO;
}
Now I can see the colors of a normals on the object, but when I rotate the object, the normals do not change, which means they remain local. What should I do to make these normals global?