Hi Volker,
the shadowmap is written into texture unit 3.
void main(....,
uniform sampler2D tex0,
uniform sampler2D tex1,
uniform sampler2D tex2,
uniform sampler2D tex3)
{
float4 color = tex2D(tex3, ...);
}
Andreas
Hi,
I´m using the ShadowMapViewport together with CG Shaders. The hadowMaps
and the shaders are working fine. I just have a problem to get the
shadow maps into the shader, because CG doesn´t support direct access to
the OpenGL states. Is there a possibility to pass the shadowMap produced
by the ShadowMapViewport to CG shader? The vertex Shader uses the ARBVP1
and the fragment shader can use any CG fragment profile from arbfp1 to
FP30.
regards
Volker
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Andreas Zieringer [EMAIL PROTECTED]
Fraunhofer IGD - A4 phone +49 (0)6151 155 289
Fraunhoferstr. 5 fax +49 (0)6151 155 196
D-64283 Darmstadt www.igd.fhg.de/www/igd-a4
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users