• Ken Martin's avatar
    Use MCDCMatrix in shaders · de8deb6a
    Ken Martin authored
    A few changes here. The motivation is to support using the MCDCMatrix
    in the vertex shader where possible. This has the advantage of
    performing the MCVC x VCDC multiplication in double precision
    on the CPU as opposed to float precision on the shader. This fixes
    a couple test failures.
    Along with that change cleanup a bit how we determine what uniforms
    to set. There were some uniforms being set when they did not exist
    in the program. Provided a more general approach for passing that
    type of information between the code that builds the shader program
    and the code that sets the uniforms.
    Add a substitute helper function that does the same job as replace
    but returns a bool if a replacement was made. Also operates on
    the source string by reference.
    Cleaned up some long lines to be shorter.
    Change-Id: Ic23133679f1d40d51c29f11810d29baf85edd306
vtkOpenGLCamera.h 1.8 KB