# custom shader uniform in vtk802

**URL:** https://discourse.vtk.org/t/custom-shader-uniform-in-vtk802/5472
**Category:** Development
**Created:** [March 30, 2021, 10:59pm UTC](https://discourse.vtk.org/t/custom-shader-uniform-in-vtk802/5472 "2021-03-30T22:59:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beijihuohu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/beijihuohu/32/4209_2.png) [@beijihuohu](https://discourse.vtk.org/u/beijihuohu)
#### Post date: [March 30, 2021, 10:59pm UTC](https://discourse.vtk.org/t/custom-shader-uniform-in-vtk802/5472/1 "2021-03-30T22:59:36Z")

</div>

I am using VTK8.2 version. I want to generate simulation animation by updating the shader uniform variables in the graphical interface. However, all the examples use vtkCommand as the basis for updating control. I can only use vtkShaderProgram to update the shader uniform variables there. Inconvenient, does anyone have a solution?
