# Advanced replacement shaders

**URL:** <https://discourse.paraview.org/t/advanced-replacement-shaders/15622>\
**Category:** ParaView Support\
**Tags:** opengl\
**Created:** [October 23, 2024, 8:35pm UTC](https://discourse.paraview.org/t/advanced-replacement-shaders/15622 "2024-10-23T20:35:57Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sankhesh\_Jhaveri](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sankhesh_jhaveri/32/3374_2.png) [@Sankhesh\_Jhaveri](https://discourse.paraview.org/u/Sankhesh_Jhaveri)\
**Post date:** [November 6, 2024, 9:31pm UTC](https://discourse.paraview.org/t/advanced-replacement-shaders/15622/22 "2024-11-06T21:31:31Z")

</div>

> [@tjggriffin](#):
>
> I think the way to get the full shader codes is to do what Jaswant suggested.

Both methods will dump the full shader code. The difference between the two methods is that uncommenting VTK lines would require a new build whereas introducing a syntax error can be done at runtime without requiring a new ParaView build.

---

<div class="post-metadata">

**Author:** ![tjggriffin](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tjggriffin/32/11986_2.png) [@tjggriffin](https://discourse.paraview.org/u/tjggriffin)\
**Post date:** [November 6, 2024, 9:59pm UTC](https://discourse.paraview.org/t/advanced-replacement-shaders/15622/23 "2024-11-06T21:59:27Z")

</div>

Thanks Cory! I’ll certainly look at that code. I’m hoping I can get a grip on best practices and pit falls, how to take the most advantage of what they can do. I’ve certainly learned much so far, but I think I have much more to learn. Knowing the limitations is a big part of that.

---

<div class="post-metadata">

**Author:** ![tjggriffin](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tjggriffin/32/11986_2.png) [@tjggriffin](https://discourse.paraview.org/u/tjggriffin)\
**Post date:** [November 6, 2024, 11:16pm UTC](https://discourse.paraview.org/t/advanced-replacement-shaders/15622/24 "2024-11-06T23:16:43Z")

</div>

> Both methods will dump the full shader code.

Yeah, I was wondering about that. The code I’ve been getting so far, from errors seems incomplete. It’s labeled at the top as “vtkShaderProgram” and has 94 line. The first error message says vthShaderPorgram.cxx line 1145. The only code is code from the test shader everything else is #defines, //tags and main().

[Previous page](https://discourse.paraview.org/t/advanced-replacement-shaders/15622.md?page=1)
