Results 1 to 4 of 4

Thread: Modifying the default vertex shader

  1. #1
    Join Date
    Nov 2007
    Posts
    41

    Default Modifying the default vertex shader

    Hello

    I know you can't directly access the vertex shader in Mental Mill, but is there a file somewhere which contains the default vertex shader in MetaSL that gets output into the generated code, so that I could modify it in order to pass the vertex colour through? I looked through the 'shaders' directory but couldn't find anything.

    I've successfully modified the generated shader to do this, but obviously I have to do that each time I export - would be much nicer if I could just modify the MetaSL version so that it exports correctly each time.

    Thanks
    Last edited by cardigan; January 28th, 2008 at 14:17.

  2. #2
    Join Date
    Jun 2007
    Location
    Berlin
    Posts
    447

    Default

    Hi Cardigan,

    we have already been thinking about adding more control on processing and passing data in the vertex shader. As in the current stage of mental mill, the vertex shader is currently a pass-through shader, so there's currently no means to change that somewhere in the application. You will have to modify the exported code.

    Best Regards,
    Ruediger

  3. #3
    Join Date
    Jun 2007
    Location
    Berlin
    Posts
    447

    Default

    To clearify a few things:
    It is in fact possible to modify the CgFX-exporter of mental mill in a way to do exactly what you demanded. But this is not possible in the mental mill beta version but you've rather use mental mill integrator's edition which is a componentized library of mental mill that allows you to integrate mental mill as whole or just some parts of it in other software products.
    It is also possible to write new export plugins which will behave then exactly the way you wanted them to.

    Best Regards,
    Ruediger

  4. #4
    Join Date
    Mar 2008
    Location
    Wellington, New Zealand
    Posts
    1

    Default

    Since modification of the vertex shader isn't possible, is there any way of exposing the outputs of said vertex shader to the inputs of the mental mill graph?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •