-
You can override standard engine shaders using
ComposedShader
andShaderPart
nodes. See https://castle-engine.io/x3d_implementation_shaders.php about these X3D nodes.To do this in Pascal (setup the nodes in Pascal), see demo on examples/viewport_and_scenes/shader_override .
To do this in X3D (editing X3D file), see our demo models, in particular shaders subdirectory.
-
You can add shader effects (to extend existing rendering) using
Effect
andEffectPart
nodes. See https://castle-engine.io/compositing_shaders.php for documentation of these nodes.To do this in Pascal (setup the nodes in Pascal), see demo on examples/viewport_and_scenes/shader_effects .
To do this in X3D (editing X3D file), see our demo models, in particular compositing_shaders subdirectory.