https://github.com/ulastosun/unity-2d-procedural-shape-examples
An example Unity project for 2D procedural shape creation with both basic and advanced examples.
https://github.com/ulastosun/unity-2d-procedural-shape-examples
procedural-textures unity-shader unity-shader-graph unity3d
Last synced: about 1 year ago
JSON representation
An example Unity project for 2D procedural shape creation with both basic and advanced examples.
- Host: GitHub
- URL: https://github.com/ulastosun/unity-2d-procedural-shape-examples
- Owner: UlasTosun
- Created: 2025-01-28T13:44:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T19:15:05.000Z (about 1 year ago)
- Last Synced: 2025-05-07T12:56:14.838Z (about 1 year ago)
- Topics: procedural-textures, unity-shader, unity-shader-graph, unity3d
- Language: ShaderLab
- Homepage:
- Size: 3.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unity 2D Procedural Shape Examples
Procedural shapes allow users to create and manipulate shapes dynamically and animate them at runtime.
This repository provides 2D procedural example shapes at both basic and advanced levels. Provided basic shapes can be used to create more complex shapes.
## Advanced Examples
**2D Signed Distance Field (SDF):** This example provides an animation for UI (buttons and images) by using SDFs. It uses a modified version of the built-in UI shader of Unity.

**Star:** It provides an example procedural star shape which is highly customizable (number of corners, inner radius, etc.).

**Shurinken:** It provides an example procedural shurinken shape which is highly customizable.

## Basic Examples
This repository includes several basic shapes such as line, triangle, polygon, circle, quadratic and sinusoidal. They can be used as a base to be able to create more complex shapes. Following images belong to examples which blends two textures based on those shapes.





