### Simple Shader (6/7)

Description:

The final tweak we will explore in visualizing is the use of Shaders, and other ways to replace OpenGL standard operations. We will add our own operation, using three different parts in the rendering pipeline.

Key points

Clear the scene graph. Add a dragon OglModel as we did in the previous steps.

Shaders are applied in SOFA with the OglShader component. It will apply shading to all the Visual Models (OglModels) in its node, and all its child nodes. That way, you can have several Shaders in your scene.

Add an OlgShader component.

The mandatory parameters are vertFilename and fragFilename where you give the path to the vertex and fragment GLSL code.

Using the file browser, set the vertFilename to /Sofa/share/shaders/phong.vert, and the fragFilename to /Sofa/share/shaders/phong.frag.

Run in SOFA.

### Next