# 'Zebra' in Grasshopper

**URL:** <https://discourse.mcneel.com/t/zebra-in-grasshopper/108124>\
**Category:** Grasshopper\
**Created:** [September 4, 2020, 11:11am UTC](https://discourse.mcneel.com/t/zebra-in-grasshopper/108124 "2020-09-04T11:11:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/762888_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [January 11, 2021, 9:04pm UTC](https://discourse.mcneel.com/t/zebra-in-grasshopper/108124/4 "2021-01-11T21:04:01Z")

</div>

> [@laurent\_delrieu](#):
>
> I still don’t know how to fix it but it seems that the function  
> mat.SetEnvironmentTexture(T, True)  
> doesn’t work.

> [@Matcap display trick](https://discourse.mcneel.com/t/matcap-display-trick/86152/10):
>
> Couldn’t get it to work properly with Rhino WIP myself. Probably best to go with @nathanletwory’s suggestion in any case.

> [@MATCAP rendering fails in RhinoWIP](https://discourse.mcneel.com/t/matcap-rendering-fails-in-rhinowip/100586/4):
>
> Hi @nathanletwory, I guess the problem is the [DisplayMaterial.SetEnvironmentTexture](https://developer.rhino3d.com/wip/api/RhinoCommon/html/M_Rhino_Display_DisplayMaterial_SetEnvironmentTexture_1.htm) doesn’t work as expected. private void RunScript(Mesh x, ref object A) { \_m = x; } // \<Custom additional code\> Mesh \_m; public override void DrawViewportMeshes(IGH\_PreviewArgs args) { var mat = new DisplayMaterial(); mat.SetEnvironmentTexture(@"D:\matcap.png", true); args.Display.DrawMeshShaded(\_m, mat); } // \<Custom additional code\> other textures work as expected: [SetEnviron…](https://discourse.mcneel.com/uploads/short-url/b0gXsqE9Vw7vabHy6quOQtt1YLN.gh)

1 year later, it is still the same.  
There are any plans for this to be fixed?

Do someone knows any workaround from c# ?

I could use GHGL but usually prefer to have definitions that works on any machine without further installation/restart… and that runs on both, rhino 6 and 7.

---

_[View the full topic](https://discourse.mcneel.com/t/zebra-in-grasshopper/108124)._
