Topic: Multiple shaders (custom + maratis)?

Hey,
First of all, is it posibble to make a scene similar this:
> There is a spotlight that uses shadows.
> There is a cube that uses my special shader.
> Cube casts/receives shadows and my shader makes texturing.
I saw

Re: Multiple shaders (custom + maratis)?

Yes,
in this example, there is one shader with shadow support : http://www.maratis3d.org/?p=548
(You can look a the shader code to see how it is implemented)

Re: Multiple shaders (custom + maratis)?

Oh, which one? I see there is a standart shader but it has lighting too?
I want to make a shading like Unity's Directional Light + Materials.
(or maybe I just missed something in the example?)

Re: Multiple shaders (custom + maratis)?

The one with support for shadow is "standardDSEN".
Search for "computeShadow" in "standardDSEN.frag" > that's how shadow mapping works in Maratis.

Re: Multiple shaders (custom + maratis)?

That means there is no way to combine my shader with shadow-mapping without making shadow-mapping manually (again), right? So, what about multi-pass rendering for shadow-mapping that is being used for hdr/bloom effects? If it is posibble, maratis will make shadow-mapping without our custom shader (re-inverting)!