https://github.com/xevion/climb
A simple project for demonstrating use of basic Shaders in Unity. Includes grid rendering, a heatmap, use of the GPU and StructuredBuffer for inputs and a perlin noise 'map'.
https://github.com/xevion/climb
csharp perlin perlin-noise rgb shader shaderlab shaders unity unity2d
Last synced: about 1 month ago
JSON representation
A simple project for demonstrating use of basic Shaders in Unity. Includes grid rendering, a heatmap, use of the GPU and StructuredBuffer for inputs and a perlin noise 'map'.
- Host: GitHub
- URL: https://github.com/xevion/climb
- Owner: Xevion
- Created: 2020-07-08T01:33:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T15:29:02.000Z (over 5 years ago)
- Last Synced: 2025-02-14T02:52:43.049Z (over 1 year ago)
- Topics: csharp, perlin, perlin-noise, rgb, shader, shaderlab, shaders, unity, unity2d
- Language: ShaderLab
- Homepage:
- Size: 14.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Climb
A simple project for testing out how to use Shaders in Unity.
This project mostly revolves around rendering of a grid of squares, each able to accept a color. Currently it is programmed to accept a single floating point describing it's position on a value gradient.
It is also programmed to use values from a Perlin Noise map which slowly scrolls over. The value gradient's points were generated from a image I found online, and the RGB values generated from a simple Python script.
## Screenshot

## Important Files
- [GridShader.shader](./Climb/Assets/GridShader.shader) - Controls rendering of a grid. Values are sent through the GPU (StructuredBuffer)!
- [GridController.cs](./Climb/Assets/Scripts/GridController.cs) - Controls value generation, scrolling and actually sending values to the shader mat.
- [hsv/main.py](./hsv/main.py) - Generates an array literal from [gradient.png](./hsv/gradient.png) for use in the Shader as a gradient for a heatmap.