# Change Uniform var of Shaders on vtk 8.2

**URL:** https://discourse.vtk.org/t/change-uniform-var-of-shaders-on-vtk-8-2/6144
**Category:** Support
**Created:** [July 7, 2021, 1:28am UTC](https://discourse.vtk.org/t/change-uniform-var-of-shaders-on-vtk-8-2/6144 "2021-07-07T01:28:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![WailmerPail](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wailmerpail/32/3356_2.png) [@WailmerPail](https://discourse.vtk.org/u/WailmerPail)
#### Post date: [July 7, 2021, 1:28am UTC](https://discourse.vtk.org/t/change-uniform-var-of-shaders-on-vtk-8-2/6144/1 "2021-07-07T01:28:59Z")

</div>

Hi groups,

I already know in vtk-9.1, we can easily get uniforms by vtkShaderProperty.  
But with vtkOpenglMapper, we only have addreplacement and reset function.  
Does it means we have to save the shader code in memory, and do [reset–str replace–add] loop?  
I noticed that there is a class named vtkOpenGLUniforms, but I can’t find any documents of it.  
Will it works for my problems?

Thank you!
