# Shader effects demo

**URL:** https://forum.castle-engine.io/t/shader-effects-demo/262
**Category:** News
**Created:** [December 1, 2020, 7:17pm UTC](https://forum.castle-engine.io/t/shader-effects-demo/262 "2020-12-01T19:17:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [December 1, 2020, 7:17pm UTC](https://forum.castle-engine.io/t/shader-effects-demo/262/1 "2020-12-01T19:17:13Z")

</div>

| [![Zrzut ekranu z 2020-11-29 04-05-01](https://castle-engine.io/wp/wp-content/uploads/2020/11/Zrzut-ekranu-z-2020-11-29-04-05-01-200x117.png)](https://castle-engine.io/wp/wp-content/uploads/2020/11/Zrzut-ekranu-z-2020-11-29-04-05-01.png "Zrzut ekranu z 2020-11-29 04-05-01") |
| [![Zrzut ekranu z 2020-11-29 04-04-51](https://castle-engine.io/wp/wp-content/uploads/2020/11/Zrzut-ekranu-z-2020-11-29-04-04-51-200x117.png)](https://castle-engine.io/wp/wp-content/uploads/2020/11/Zrzut-ekranu-z-2020-11-29-04-04-51.png "Zrzut ekranu z 2020-11-29 04-04-51") |

I added a simple demo to show our [Compositing Shaders effects](https://castle-engine.io/compositing_shaders.php) used in practice. The demo is available in [examples/3d\_rendering\_processing/shader\_effects](https://github.com/castle-engine/castle-engine/tree/master/examples/3d_rendering_processing/shader_effects).

The demo adds an `Effect` node by code, to a model loaded from glTF, and also shows how to manipulate custom effect parameter (which maps to GLSL uniform) at runtime. These effects use shader code (GLSL, running on GPU) that is automatically integrated with standard engine rendering shaders.

If you come from [Unity](https://github.com/castle-engine/castle-engine/wiki/Castle-Game-Engine-for-Unity-developers) then these effects are CGE analogy of Unity “surface shaders” (but much more flexible 🙂 ).
