Material Block Property in rendermesh

anyone got any idea how you would access the material block property?

like dots equivalent of meshRenderer.GetPropertyBlock(…) or something

You don’t use the property blocks, but pass the data with component data.
See this post: Per-instance material params support in Entities 0.2!

Or the Hybrid renderer docs: DOTS Hybrid Renderer | Hybrid Renderer | 0.5.2-preview.4

how would you do something like this though?

MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
materialPropertyBlock.CopyProbeOcclusionArrayFrom(...);
materialPropertyBlock.CopySHCoefficientArraysFrom(...);

guessing something like this?

[Serializable]
[MaterialProperty("_OclusionProbes", MaterialPropertyFormat.Float4)]
public struct : IBufferElementData
{
    public float4 Value;
}

doesn’t seem like it would be stored as a property

I don’t know about those features, I thought you only meant how to pass params to the shader. Sorry :slight_smile: