This file contains hidden or 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
using UnityEngine; | |
public class MinMaxSliderAttribute : PropertyAttribute | |
{ | |
public readonly float max; | |
public readonly float min; | |
public MinMaxSliderAttribute( float min, float max ) | |
{ | |
this.min = min; | |
this.max = max; |
This file contains hidden or 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
//named with '.hlsl' extension to get highlighting, it's really a '.compute'-file | |
#pragma kernel CSMain | |
RWTexture3D<float4> Result; | |
// if Shader Model doesn't support kernel threadgroups in the Z axis | |
// organize the threads differently | |
#if SHADER_TARGET < 40 | |
[numthreads(16, 16, 1)] | |
#else |
OlderNewer