Search Unity

DrawMeshInstanced with 2 materials

Discussion in 'General Graphics' started by anpd03, Feb 21, 2019.

  1. anpd03

    anpd03

    Joined:
    Aug 7, 2013
    Posts:
    65
    Hi,

    We are creating building meshes with props that are shared between different meshes, all props use the same material but the buildings themselves have their own unique material so each building with props require 2 materials. Is there a way to use DrawMeshInstanced to render a mesh with more than one material?

    / Andreas
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
  3. anpd03

    anpd03

    Joined:
    Aug 7, 2013
    Posts:
    65
    Ah, thanks! Missed that :/
     
    richardkettlewell likes this.