# Compositing shaders improvements, "Mountains of Fire" demo updated

**URL:** https://forum.castle-engine.io/t/compositing-shaders-improvements-mountains-of-fire-demo-updated/583
**Category:** News
**Created:** [May 21, 2022, 8:38pm UTC](https://forum.castle-engine.io/t/compositing-shaders-improvements-mountains-of-fire-demo-updated/583 "2022-05-21T20:38:46Z")
**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: [May 21, 2022, 8:38pm UTC](https://forum.castle-engine.io/t/compositing-shaders-improvements-mountains-of-fire-demo-updated/583/1 "2022-05-21T20:38:46Z")

</div>

| [![Mountains of Fire](https://castle-engine.io/wp/wp-content/uploads/2022/05/mountains_of_fire_screen_3-200x113.png)](https://castle-engine.io/wp/wp-content/uploads/2022/05/mountains_of_fire_screen_3.png "Mountains of Fire") |

I have improved the available “plugs” for our [compositing shaders](https://castle-engine.io/compositing_shaders.php) mechanism and updated their [documentation](https://castle-engine.io/compositing_shaders_doc/html/).

The overall goal was to make them friendly when you target only Phong shading, or want to switch between Phong and Gouraud shading.

- New [PLUG\_fragment\_modify](https://castle-engine.io/compositing_shaders_doc/html/section.fragment_plugs.html), simplest way to modify calculation after lighting, textures, fog are applied. This is also used now in the initial examples on [Chapter 5. Extending the shaders with plugs](https://castle-engine.io/compositing_shaders_doc/html/chapter.plugs.html).

- Clear warning when trying to use deprecated [PLUG\_texture\_apply](https://castle-engine.io/compositing_shaders_doc/html/section.fragment_plugs.html).

- Improved documentation about new things, and differences between Phong and Gouraud shading — `PLUG_main_texture_apply`, `PLUG_texture_apply`, `PLUG_lighting_apply` all necessarily behave a bit different depending on shading.

I have also updated [Mountains of Fire](https://github.com/castle-engine/mountains-of-fire/) (see also [game page](https://castle-engine.io/mountains_of_fire.php)) a bit, to use new shader effects.
