[vtk-developers] Any VTK Shader experts?

Aashish Chaudhary aashish.chaudhary at kitware.com
Fri Jul 15 13:09:48 EDT 2011


Dave,

I have done quite a bit work. I can help you after my current meeting.



On Fri, Jul 15, 2011 at 11:09 AM, David Partyka
<david.partyka at kitware.com> wrote:
> Hi All,
> Yesterday I took a stab at the ShadowMapPass test failures on the Mac. When
> ValidateProgram is called on your shader program it is pretty strict,
> requiring the shader language version to be defined before anything else.
> http://www.cdash.org/CDash/testDetails.php?test=102624315&build=1274890
> I fixed this by ensuring the language version number is first.
> Now I get another a new set of errors that I am not sure at all how to
> solve.
> http://www.cdash.org/CDash/testDetails.php?test=104979321&build=1329109
> Googling the error message it seems to indicate that there are two uniforms
> of different types that are initialized to the same texture unit. I can see
> that being the case in the fragment shader (vtkShadowMapPassShader_fs.glsl)
> because by default both of these will be initialized to 0.
> uniform sampler2DShadow shadowMaps[VTK_LIGHTING_NUMBER_OF_LIGHTS];
> uniform sampler2D spotLightShape;
> Unfortunately I don't know enough about how the uniforms are initialized and
> bound when running them from within VTK. Does anyone have any ideas?
> Thanks!
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com



More information about the vtk-developers mailing list