# Custom Shader ShaderMaterial API preview with animated uniforms. ```{raw} html 📄 Docs only ``` **Tags:** `3d` Demonstrates: - ShaderMaterial with inline GLSL vertex and fragment source - Per-frame uniform animation (time, amplitude, colour) - Multiple objects with different shader parameters - Standard Material objects alongside custom shaders Controls: A / D - Orbit camera W / S - Zoom in / out 1 / 2 - Adjust wave amplitude Escape - Quit Usage: uv run python examples/features/3d/custom_shader.py ## Source ```{literalinclude} ../../examples/features/3d/custom_shader.py :language: python :linenos: ```