Quote:
Now i think about an advanced tutorial using shader fragments. But i get the error X3000 (unexpected token: compile_fragment).
It was only a little mistake and the error message was wrong. The token "compile_fragment" is recognized, was only at the wrong place.
It must looks:
Code:
vertexfragment r_AddSoilFog = compile_fragment vs_1_0 AddSoilFog();
If i figure out the correct use, i write it in the next tutorial too. It gives speed up, you don´t to have give parameters, and advantage of parralel use on arrays.