EDIT: this is basically a flawed / outdated tutorial problem, I think. Even the ones linked from here have errors / typos in variable names.
Especially frustrating because the examples “should” be simple… Eventually with a little guesswork I made it though.
I have a working SIMPLE pixel shader… I can now turn things white, regardless of their actual texture color… Amaze!
OLD POST:
I can’t get any tutorial to work… Even the ones on this site don’t help me… Been programming for YEARS, so I shouldn’t be hopeless, but I always make ZERO progress with shaders for the same reason. I can’t find ONE working example… The one on this site with the bunny sprite is just another example of this… -The comments try to clear it up, but it leads nowhere.
I know all I need to know about what shaders are. I don’t think I need info. I need practical implementation.
Can someone post a complete .fx file here, just a real simple one, like make everything red…
And then show how it is implemented / used from my game code… -Some will have you put “effect1.CurrentTechnique.Passes[0].Apply();” inside Draw, some say include the effect as an overload in Begin()…
I cannot for the life of me find ONE example or tutorial that actually produces anything… Stumped.
Several hours spent, on multiple occasions, this nut won’t crack, here is your chance to be a hero!