Search Unity

Material Property Block support?

Discussion in 'Entity Component System' started by JakHussain, Jun 24, 2019.

  1. JakHussain

    JakHussain

    Joined:
    Oct 20, 2016
    Posts:
    318
    Hi Guys,

    As the title suggests, I'm interested to know if there's any substitute for how, traditionally, we'd use MaterialPropertyBlock to assign new values to MeshRenderers using materials that are GPU instanced. Does ECS support this in any way?
     
    Squize likes this.
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    Forum search by "Material Property Block" so many results.
    One of the latest for RenderSystemV2:
    https://forum.unity.com/threads/rendermeshsystemv2-and-materialpropertyblocks.648748/#post-4346443
    And much more for previous MeshInstanceRendererSystem.
    Also latest extracted form Nordeus demo GPUAnimation by Joachim avoiding MPB and using ComputeBuffers instead
    https://forum.unity.com/threads/vertex-shader-based-skinned-character-animation.692077/#post-4628449
    https://github.com/joeante/Unity.GPUAnimation