Hello Daniel,
Daniel Svensson wrote:
> I am trying to include shadows in my application and so far I have only
> tried using the SimpleShadowMapEngine. The trouble I am having is that I
> have not found a way to retreive the shadow map texture that is
> generated by SimpleShadowMapEngine so that I can plug it into my
> shaders.
yeah, the SimpleShadowMapEngine is intended to handle creation and
application of a SM to the scene all at once.
> Is there a way to access it or should I be using another
> method for creating shadows when using my own shaders?
I have some code lying around that adds a ShaderShadowMapEngine which
gives you access to the generated shadow map. It also provides a
ShaderProgram with a function that you can call from your own shader to
do the shadow lookup (just add the provided ShaderProgram to your
ShaderProgramChunk).
I'll clean this up a little and commit it.
Cheers,
Carsten
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users