Quote:

Now it works without errors, but I just see a black object!




It could be the fog setting for the pass. I forget the exact command off the top of my head (at work, no code to review). Someone want to help on this? fogenable=false ?? or is it enablefog=false ?? (which goes in the "pass" section of the shader.


Just thinking out loud, Specterdragon