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
{ | |
"@type": "Retrodreamer.Monocles.Gen2.Phase", | |
"Id": "base", | |
"Steps": [ | |
{ | |
"@type": "Retrodreamer.Monocles.Gen2.SetParametersStep", | |
"Priority": 0, | |
"Params": { | |
"@type": "Mapgen.GossRix.GossRixParameters", | |
"AreaWidth": 70, |
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/occlusion_multipass_shader" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} | |
[PerRendererData] _OcclusionColor("Tint", Color) = (1,0,1,1) | |
} | |
SubShader | |
{ |
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/BasicOcclusionShader" { | |
Properties{ | |
_OcclusionColor("Color", Color) = (1, 0, 1, 1) | |
} | |
SubShader { | |
Tags{ "RenderType" = "Transparent" "Queue" = "Transparent" } | |
Pass { | |
Blend SrcAlpha OneMinusSrcAlpha | |
ZTest Greater | |
ZWrite Off |
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
public abstract class A | |
{ | |
public int Foo = 1; | |
} | |
public class B : A | |
{ | |
public int Bar = 2; | |
} |
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
public enum Test { | |
A = 1, | |
B = 2, | |
C = 3, | |
D = 4, | |
E = 5, | |
F = 6, | |
G = 7 | |
} |
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
sampler2D _MainTex; | |
struct Input { | |
float2 uv_MainTex; | |
float2 uv2_MainTex; // lightmap uvs | |
}; | |
half _Glossiness; | |
half _Metallic; | |
fixed4 _Color; |
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
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Text; | |
public class CreateLayerConstants | |
{ | |
const string CLASS_NAME = "LayerConstants"; | |
const string FILE_PATH = "Assets/Scripts/Generated/"; |
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
public bool enabled | |
{ | |
get | |
{ | |
return ParticleSystem.EmissionModule.GetEnabled(this.m_ParticleSystem); | |
} | |
set | |
{ | |
ParticleSystem.EmissionModule.SetEnabled(this.m_ParticleSystem, value); | |
} |
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
template <class T> | |
struct Vec3 | |
{ | |
public: | |
T x; | |
T y; | |
T z; | |
Vec3() : x(0), y(0), z(0) {} | |
Vec3(T nx, T ny, T nz) : x(nx), y(ny), z(nz) {} |
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
class Entity | |
{ | |
public: | |
Entity(string name); | |
~Entity(); | |
void SetParent(Entity* newParent); | |
bool HasTag(string toFind); | |
void AddTag(string toAdd); |