Debian Codegraph @

examples/viewport_and_scenes/shader_effects/README.md

raw symbols SCIP
1 # Using Shader Effects to implement rendering effects that enhance the standard rendering
2
3 Demo of using _Castle Game Engine_ "shader effects" described on https://castle-engine.io/compositing_shaders.php from Pascal.
4
5 The demo adds an `Effect` node by code, 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.
6
7 We show 2 versions:
8
9 - custom color parameter
10
11 - custom texture parameter
12
13 In both cases, these are custom fields passed to `Effect` node, and they correspond to GLSL uniform variable.
14
15 See https://castle-engine.io/compositing_shaders.php and in particular https://castle-engine.io/compositing_shaders_doc/html/ about shader effects.
16
17 ![Screenshot](screenshot.png)
18
19 Using [Castle Game Engine](https://castle-engine.io/).
20
21 ## Building
22
23 Compile by:
24
25 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
26
27 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
28
29 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `shader_effects_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).
30
31 - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `shader_effects_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details.