This repository is a collection of Materials and Material Functions created in Unreal Engine 5 (UE5) that draw shapes without using textures. This project is dedicated to supporting individual developers in the Unreal Engine community. You are free to use it as long as it does not violate the terms of the LICENSE file.
- No Textures for Shapes: Every shape and pattern is calculated inside the material. Textures appear only as sample input (the debug images that transitions switch between, a star image for the outline effect) or as small lookup tables (the 7- and 14-segment displays).
- Customizable: Easily adjust colors, shapes, and animations by changing parameters. Many materials come with Material Instances that show variations.
- Three Ways to Use Them: Surface materials go on meshes, User Interface materials go into UMG widgets, and Post Process materials apply to the whole screen.
- Variety of Samples:
- Shapes and icons: circles, polygons, stars, hearts, gears, hazard marks, yin-yang
- Seasonal motifs: cherry blossoms, maple and ginkgo leaves, snowflakes, falling snow
- Animation: radar, ECG, waves, tunnels, sci-fi rings, warp effects
- Transitions and dissolves: hex, triangle and rectangle tiles, burn, page curl, ripple, vortex
- Post process: VHS, old TV, glitch, night vision, halftone, ink painting (sumi-e), speed lines, damage vignette
- UI: loading icons, gauges, radar chart, 7- and 14-segment displays, potion and liquid
| Radar | Animation |
|---|---|
![]() |
![]() |
| SnowFlake | Transition |
![]() |
![]() |
| OldTV | Others |
![]() |
![]() |
| PageCurl | |
![]() |
Open these levels from Content/Levels to see the materials side by side.
| Level | What it shows |
|---|---|
Showcase_Shape |
27 shapes, SDF shapes, icons, and seasonal motifs |
Showcase_Seasons |
7 seasonal motifs grouped into spring, autumn, and winter |
Showcase_Animation |
20 animated materials: waves, radial effects, patterns, transitions, and a glitch |
Showcase_Transition |
12 screen transitions: wipes and distortions |
Showcase_Dissolve |
21 dissolves and fades on rectangle, triangle, dot, and hex grids |
Showcase_Hex |
8 hexagon grid materials: tilings, a dissolve, and animations |
Showcase_PostProcess |
27 post process effects, one per booth |
Showcase_UI_LoadingIcon |
5 UI loading icons |
Showcase_UI_Status |
UI radar charts (3 materials and 1 instance) and a battery gauge |
Showcase_UI_Graphic |
A UI lemon slice illustration and a warp background |
Showcase |
The original level, with about half of all the materials |
Every material here loops over time, so the image below is a single moment.
Each transition loops between two images, so the image below is a single moment. Wipes move a shaped edge (fire, a page curl, halftone dots) across the surface; distortions ripple, warp, or blur one image into the other. M_FlipTransition, next to M_Flip_Transition, is a rebuild of it with the same parameters and defaults and its bugs fixed: the tiles now turn over instead of being cut out by a band.
All but M_TriangleTiling loop over time, so the image below is a single moment. Versions such as M_Rect_Dissolve to M_Rect_Dissolve_V6 are shown side by side when they look different. M_TriangleTiling draws a still triangle grid whose 1 px lines read as dots from the default camera; move closer to see the grid.
All but M_HexTiling loop over time, so the image below is a single moment. Like M_TriangleTiling, M_HexTiling is a still grid with thin lines that read as dots from the default camera.
Each booth has its own bounded Post Process Volume, so an effect applies only while the camera is inside that booth. The level opens in front of the first booth: move along the +X axis, or pilot one of the Cam_<material name> cameras in the Outliner. Below are 9 of the 27 booths.
The icons are placed in a widget (Content/Widgets/WBP_Showcase_UI_LoadingIcon) that is added to the screen at runtime. Press Play (PIE) to see them.
The radar chart is made of two layers: M_Rader_Chart_BG draws the scale and M_Rader_Chart_Core draws the values. M_Rader_Chart combines them, and MI_Rader_Chart sets different values. As with the loading icons, press Play (PIE) to see the widget (Content/Widgets/WBP_Showcase_UI_Status).
Press Play (PIE) to see the widget (Content/Widgets/WBP_Showcase_UI_Graphic).
The project has 175 materials, 91 material functions, and 85 material instances. The Material Catalog lists all of them, with the domain of each material and the showcase level that displays it.
| Category | Examples | Materials |
|---|---|---|
| Shapes | circle, polygon, ring, rounded rectangle, star, heart, grid, yin-yang | 24 |
| Icons | star, cherry blossom, gear, hazard mark, radar, loading icons | 9 |
| Seasons | maple and ginkgo leaves, snowflakes, falling snow | 5 |
| Animation & Effects | ECG, waves, tunnels, spirals, hex patterns, sci-fi rings, warp, lens flare, caustics | 40 |
| Dissolve & Fade | rectangle, triangle and hex dissolves, dot and hex fades | 22 |
| Transitions | burn, flip, page curl, ripple, warp, zoom blur | 13 |
| Post Process | VHS, old TV, glitch, night vision, halftone, sumi-e, speed lines, damage vignette, screen transitions | 40 |
| UI | loading icons, gauges, radar chart, 7- and 14-segment displays, potion, outline | 21 |
| Work in Progress | unfinished materials | 1 |
The Material Functions are building blocks that you can call from your own materials. Most of them are in Content/Materials/Function. Some useful ones:
| Function | What it does |
|---|---|
MF_DrawCircle / MF_DrawCircle_AA |
Circle (_AA adds an anti-aliased edge) |
MF_DrawPolygon / MF_DrawPolygon_AA |
Regular polygon with any number of sides |
MF_DrawRoundedRectangle |
Rectangle with rounded corners |
MF_DrawRing |
Ring |
MF_DrawStar / MF_DrawPentagram |
Stars |
MF_DrawHeart |
Heart |
MF_SDBox / MF_Capsule |
Box and capsule shapes from signed distance functions |
MF_DrawHexTiling / MF_DrawTriangleTiling |
Hexagon and triangle tiling patterns |
MF_HalftoneDot |
Halftone dot pattern |
MF_N21 |
Pseudo-random value from a 2D input |
MF_GLSLMod |
GLSL-style mod (x - y * floor(x / y)), which differs from HLSL fmod for negative values |
MF_SmoothMin / MF_SmoothMax |
Smooth minimum and maximum, for blending distance fields |
MF_EaseOutExpo / MF_SmootherStep |
Easing curves for animation |
MF_PingPong |
Value that moves back and forth |
MF_Posterize |
Reduces a value to a fixed number of steps |
Content/Materials/PostProcess/MaterialFunctions/VHS holds 18 more functions for retro screen effects, such as CRT curvature, chromatic aberration, scanlines, vignette, and noise.
- Unreal Engine 5.8 or later
- The assets are saved with 5.8 and cannot be opened in earlier versions.
- Clone or download this repository.
- Copy the contents of the
Contentfolder from this repository into your project'sContentfolder.
This project is licensed under the MIT License.
This project was made possible by referencing the following websites and resources. Thank you very much.
- Drawing a circle with only a shader - Terachur Blog (Japanese)
- Rounded Rectangle Node - Unity Documentation
- Introduction to Drawing with Unity Shaders - Scrapbox (Japanese)
- shadertoy
- Eiliram's ArtStation
- 【ShaderGraph】Triangle effect that splits into a grid and expands from the center - Zenn (Japanese)
- Creating shapes with only UE4 materials - Qiita (Japanese)
- cmzw_ on Twitter
- 【UE5】Creating an arrow with materials - Renard's Blog (Japanese)
- 2D Distance Functions - Iñigo Quilez















