mb.fx shader editing?

Users who are viewing this thread

Is anyone familiar with shader programming or just editing?

I notice mb.fx could be edited and what I was looking for was some way to change outdoor shadow map opacity to more transparent/lighter than what it is.

(The shadows are too dark on my CRT monitor if you're wondering and gamma doesn't help much.)

Unfortunately I'd be no good at this myself besides changing random numbers to see if I can get a desired effect, but it might make more sense if someone who actually understood how shaders worked could take a look.  :mrgreen: :mrgreen:

 
PS_OUTPUT ps_main_shadowmap(PS_INPUT_SHADOWMAP In)
{
    PS_OUTPUT Output;
    Output.RGBColor.a = tex2D(MeshTextureSampler, In.Tex0).a;
    Output.RGBColor.a -= 0.5f;
    clip(Output.RGBColor.a);
   
    Output.RGBColor.rgb = In.Depth;// + fShadowBias;
return Output;
}

hmm I wonder if changing that would do anything? but I need fxc.exe compiler from direct x SDK to recompile it X( I think I'll try it later
 
Oh very, interesting, thank you! It compiles in the game itself too so I don't even need anything else.


update: well changing value I'm not even sure works, or it doesn't help with something else going on maybe some math in here that has to be figured out. I'll poke around more but like I say I'm quite stupid about stuff like this so probably won't get anywhere.  :mrgreen:
 
Back
Top Bottom