33 lines
545 B
Text
33 lines
545 B
Text
Shader "CrispyPin/LibGarbageExample"
|
|
{
|
|
Properties
|
|
{
|
|
[Header(Raymarcher Properties)]
|
|
_MaxSteps ("Max steps", Int) = 128
|
|
_MaxDist ("Max distance", Float) = 128
|
|
_SurfDist ("Surface distance threshold", Range(0.00001, 0.05)) = 0.001
|
|
|
|
}
|
|
SubShader
|
|
{
|
|
Tags { "RenderType"="Opaque" }
|
|
Cull Front
|
|
LOD 100
|
|
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
|
|
int _MaxSteps;
|
|
#define MAX_STEPS _MaxSteps
|
|
|
|
// #define DISABLE_DEPTH
|
|
// #define DISCARD_ON_MISS
|
|
#include "libgarbage.cginc"
|
|
|
|
ENDCG
|
|
}
|
|
}
|
|
}
|