# Does Paraview support custom shaders?

**URL:** https://discourse.paraview.org/t/does-paraview-support-custom-shaders/5495
**Category:** ParaView Support
**Created:** [October 5, 2020, 11:41am UTC](https://discourse.paraview.org/t/does-paraview-support-custom-shaders/5495 "2020-10-05T11:41:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jone](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jone/32/9307_2.png) [@jone](https://discourse.paraview.org/u/jone)
#### Post date: [October 5, 2020, 11:41am UTC](https://discourse.paraview.org/t/does-paraview-support-custom-shaders/5495/1 "2020-10-05T11:41:54Z")

</div>

Or are there other shaders available?The figure below means that there is such an interface:  
 ![Untitled](https://discourse.paraview.org/uploads/default/original/2X/d/dbe3c972de30d804ab33cd551c4f61785d96cde6.png)  
Thanks in advance for your answers.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [May 15, 2021, 6:08pm UTC](https://discourse.paraview.org/t/does-paraview-support-custom-shaders/5495/2 "2021-05-15T18:08:18Z")

</div>

I don’t think there are prepackaged ones, but this does allow one to replace (parts of) the shaders that VTK uses internally.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 17, 2021, 8:12am UTC](https://discourse.paraview.org/t/does-paraview-support-custom-shaders/5495/3 "2021-05-17T08:12:32Z")

</div>

You can write your own and store them using this interface.

Some examples here:

> [@Is there any documents or examples for Custom shader / Shader Replacement?](https://discourse.paraview.org/t/is-there-any-documents-or-examples-for-custom-shader-shader-replacement/1423):
>
> I am trying to shading a point cloud in point gaussian representation. But I cannot figure out how to get vertex normal or how to get camera position through shader replacement/ custom shader. Could someone give me some hints? Thanks!

---

<div class="post-metadata">

### Author: ![Joachim\_P](https://discourse.paraview.org/user_avatar/discourse.paraview.org/joachim_p/32/9596_2.png) [@Joachim\_P](https://discourse.paraview.org/u/Joachim_P)
#### Post date: [May 18, 2021, 6:50am UTC](https://discourse.paraview.org/t/does-paraview-support-custom-shaders/5495/4 "2021-05-18T06:50:53Z")

</div>

This interface allows to specify a set of shader replacement strings (and NOT the full shader code) which are a low level mechanism in how VTK manages the shader construction depending on the data type and involved mappers. The related properties editor frame help of ParaView shows a short documentation about what is expected. Basically it’s a JSON list that describes, for each replacement: the type of shader, the shader string to search, the replacement string. Clearly, it is a very advanced feature as you must know/guess the shader code.

Hope this helps.

 ![Sans titre](https://discourse.paraview.org/uploads/default/original/2X/4/479d0648e64474d83e1ab2cfb1c0f986b14a562c.png)
