Search Unity

Prevent unity from scaling vertex data before they are sent to the GPU

Discussion in 'General Graphics' started by csantos, Jan 10, 2015.

  1. csantos

    csantos

    Joined:
    Dec 20, 2013
    Posts:
    7
    If I procedurally create a mesh and associate it with a GameObject whose transform I applied a scale operation, unity scales my vertices before sending them through the graphics pipeline (supposedly at the moment when they are stored in the VBO).
    I do not want this.
    How can I prevent unity from messing with my vertex data? I want the scale operation to be applied by the Model matrix instead.

    Thanks
     
  2. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,325
  3. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    You could make a shader which `un-scales` the vertex coordinates to restore them?