public static PictureFlusher.RenderDraw fill0(PictureFlusher.RenderLayer layer, MeshMesh mesh) { Vector4 viewport = layer.viewport; var mat = _fill0Mat.getMaterial(layer.ignoreClip); var pass = 0; var props = new MaterialPropertyBlock(); props.SetVector("_viewport", viewport); return(new PictureFlusher.RenderDraw { mesh = mesh, pass = pass, material = mat, properties = props, }); }
public static PictureFlusher.CmdDraw fill0(PictureFlusher.RenderLayer layer, uiMeshMesh mesh) { Vector4 viewport = layer.viewport; var mat = _fill0Mat.getMaterial(layer.ignoreClip); var pass = 0; var props = ObjectPool <MaterialPropertyBlockWrapper> .alloc(); props.SetVector(_viewportId, viewport); return(PictureFlusher.CmdDraw.create( mesh: mesh, pass: pass, material: mat, properties: props )); }