An open API service indexing awesome lists of open source software.

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.

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.
![2D_SDF](Screenshots/2D_SDF.png)

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

**Shurinken:** It provides an example procedural shurinken shape which is highly customizable.
![Shurinken](Screenshots/Shurinken.png)

## 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.
![Line](Screenshots/Line.png)
![Triangle](Screenshots/Triangle.png)
![Quadratic](Screenshots/Quadratic.png)
![Sinusoidal](Screenshots/Sinusoidal.png)
![Circle](Screenshots/Circle.png)
![Polygon](Screenshots/Polygon.png)