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

https://github.com/ulastosun/unity-basic-shader-examples

An example Unity project for shader basics including texture manipulation, lighting, reflections, shadows, etc.
https://github.com/ulastosun/unity-basic-shader-examples

lighting unity-shader unity3d

Last synced: 5 months ago
JSON representation

An example Unity project for shader basics including texture manipulation, lighting, reflections, shadows, etc.

Awesome Lists containing this project

README

          

# Unity Basic Shader Examples

This repository includes basic shader examples in two categories; texture manipulation and lighting. These basic examples can be used to create more complex shaders.

## Lighting Examples

This section includes examples for basics of lighting, reflections, shadows, etc.

**Diffuse Reflection (Lambert Lighting):**
![Lambert](Screenshots/Lambert.png)

**Specular Reflection (Phong Lighting):**
![Phong](Screenshots/Phong.png)

**Environmental Reflection:**
![Environmental](Screenshots/Environmental.png)

**Fresnel (Rim) Effect:**
![Fresnel](Screenshots/Fresnel.png)

**Shadows:**
![Shadow](Screenshots/Shadow.png)

**Normal Map:**
![NormalMap](Screenshots/NormalMap.png)

## Basic Examples

This section includes examples for basics of texture manipulation such as repeating, sectioning, smooth step, solid gradient, zoom, etc.
![Repeat](Screenshots/Repeat.png)
![Sectioning](Screenshots/Sectioning.png)
![SolidGradient](Screenshots/SolidGradient.png)
![SmoothStep](Screenshots/SmoothStep.png)
![Circle](Screenshots/Circle.png)
![Zoom](Screenshots/Zoom.png)

## Additions

Also, this repository includes copies of default built-in UI shader and DOTS instancing shader of Unity. These shaders are added to modify them to be able to create new UI or DOTS shaders later.