TrueCraft
TrueCraft copied to clipboard
Custom client shader
We need to replace BasicEffect and AlphaTestEffect with our own shaders so we can start to branch out into areas like lighting and more effective biome colors.
Ouch, after looking into this it seems that MonoGame uses a custom 'compiled' shader format using a tool that comes with the SDK, you give it an .fx
file and it spits out a cross-platform MonoGame version. The tool also only works on Windows. Compiled shaders supposedly work on all platforms, at least.
http://www.monogame.net/documentation/?page=Custom_Effects
It's not single platform, we can do it during our build on all platforms without too much trouble. The hard part is going to be convincing MSBuild to add a custom build step for it.
I've got a custom shader compiled and loaded without issue, however it doesn't seem to render anything...
Well, what does your shader look like?
Nevermind, I've written the shader with shader model 3+ and shader model 2 functions mixed in. How that compiled is beyond me.
Ah, alright then.
This change is postponed, see discussion in #169.