This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/hex tiling surface" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_RotStrength ("Rot Strength", FLOAT) = 0 | |
_FalloffContrast ("Falloff Contrast", FLOAT) = 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Smooth Particle Hydrodynamics using burst | |
// Requires native collections which is removed from unity 2020/2019. This has to be manually installed | |
// https://forum.unity.com/threads/visibility-changes-for-preview-packages-in-2020-1.910880/ | |
// Burst and Mathematics needed | |
// @brianasu | |
using System.Collections.Generic; | |
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Jobs; |