Skip to content

Instantly share code, notes, and snippets.

View Towkin's full-sized avatar

Emanuel Strömgren Towkin

View GitHub Profile
@Towkin
Towkin / GeneratedTerrainShader.shader
Created August 15, 2018 21:05
A simple terrain generator shader. You need to get a simplex noise shader from https://github.com/keijiro/NoiseShader that fits your platform, by default this is intended for HLSL.
Shader "Custom/GeneratedTerrainShader" {
CGINCLUDE
#include "Tessellation.cginc"
#include "HLSL/SimplexNoise3D.hlsl"
ENDCG
Properties {
_Tess("Tessellation", Range(1,128)) = 4
_HeightOctaves("Height Octaves", Range(1, 16)) = 8