-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!21 &2100000 | ||
Material: | ||
serializedVersion: 6 | ||
m_ObjectHideFlags: 0 | ||
m_PrefabParentObject: {fileID: 0} | ||
m_PrefabInternal: {fileID: 0} | ||
m_Name: Earthlike Planet | ||
m_Shader: {fileID: 4800000, guid: 4137eda4addb87d4f8453d7647810ca0, type: 3} | ||
m_ShaderKeywords: | ||
m_LightmapFlags: 4 | ||
m_EnableInstancingVariants: 0 | ||
m_DoubleSidedGI: 0 | ||
m_CustomRenderQueue: -1 | ||
stringTagMap: {} | ||
disabledShaderPasses: [] | ||
m_SavedProperties: | ||
serializedVersion: 3 | ||
m_TexEnvs: | ||
- _BumpMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _CliffTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailAlbedoMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailMask: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailNormalMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _EmissionMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _HighTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _LowTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MainTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MetallicGlossMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _OcclusionMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _ParallaxMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
m_Floats: | ||
- _BumpScale: 1 | ||
- _CliffScale: 20 | ||
- _Cutoff: 0.5 | ||
- _DetailNormalMapScale: 1 | ||
- _DstBlend: 0 | ||
- _GlossMapScale: 1 | ||
- _Glossiness: 0 | ||
- _GlossyReflections: 1 | ||
- _HighBlend: 60 | ||
- _HighScale: 1 | ||
- _LowBlend: 32 | ||
- _LowScale: 20 | ||
- _MainScale: 20 | ||
- _Max: 350 | ||
- _Metallic: 0 | ||
- _Min: 0 | ||
- _Mode: 0 | ||
- _OcclusionStrength: 1 | ||
- _Parallax: 0.02 | ||
- _Sea: 10000 | ||
- _SlopeThreshold: 0.5 | ||
- _Smoothness: 0 | ||
- _SmoothnessTextureChannel: 0 | ||
- _SpecularHighlights: 1 | ||
- _SrcBlend: 1 | ||
- _UVSec: 0 | ||
- _ZWrite: 1 | ||
m_Colors: | ||
- _Center: {r: 0, g: -2000, b: 10000, a: 0} | ||
- _CliffColour: {r: 0.36764705, g: 0.36764705, b: 0.36764705, a: 1} | ||
- _Color: {r: 0.37000355, g: 0.5147059, b: 0.1400303, a: 1} | ||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} | ||
- _HighColour: {r: 1, g: 1, b: 1, a: 1} | ||
- _LowColour: {r: 1, g: 0.9208925, b: 0.71323526, a: 1} | ||
- _MainColour: {r: 0.2223407, g: 0.6544118, b: 0.20690961, a: 1} | ||
- _MainTexColor: {r: 1, g: 1, b: 1, a: 1} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!21 &2100000 | ||
Material: | ||
serializedVersion: 6 | ||
m_ObjectHideFlags: 0 | ||
m_PrefabParentObject: {fileID: 0} | ||
m_PrefabInternal: {fileID: 0} | ||
m_Name: OxygenNitrogen Atmosphere | ||
m_Shader: {fileID: 4800000, guid: be68d890469cb5643bc59b0f5afa6b96, type: 3} | ||
m_ShaderKeywords: | ||
m_LightmapFlags: 4 | ||
m_EnableInstancingVariants: 0 | ||
m_DoubleSidedGI: 0 | ||
m_CustomRenderQueue: -1 | ||
stringTagMap: {} | ||
disabledShaderPasses: [] | ||
m_SavedProperties: | ||
serializedVersion: 3 | ||
m_TexEnvs: | ||
- _BumpMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailAlbedoMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailMask: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _DetailNormalMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _EmissionMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MainTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MetallicGlossMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _OcclusionMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _ParallaxMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
m_Floats: | ||
- _BumpScale: 1 | ||
- _Cutoff: 0.5 | ||
- _DetailNormalMapScale: 1 | ||
- _DstBlend: 0 | ||
- _GlossMapScale: 1 | ||
- _Glossiness: 0.5 | ||
- _GlossyReflections: 1 | ||
- _Metallic: 0 | ||
- _Mode: 0 | ||
- _OcclusionStrength: 1 | ||
- _Parallax: 0.02 | ||
- _Rim: 2.21 | ||
- _Size: 2.4 | ||
- _SmoothnessTextureChannel: 0 | ||
- _SpecularHighlights: 1 | ||
- _SrcBlend: 1 | ||
- _UVSec: 0 | ||
- _ZWrite: 1 | ||
m_Colors: | ||
- _Color: {r: 0.12791955, g: 0.5123568, b: 0.6691177, a: 1} | ||
- _Color2: {r: 0.6494377, g: 0.91743225, b: 0.9705882, a: 1} | ||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace Spaceworks { | ||
public class BoolMatrix { | ||
|
||
[SerializeField] | ||
private bool[,] mtx; | ||
[SerializeField] | ||
private List<string> rowLabels = new List<string>(); | ||
[SerializeField] | ||
private List<string> columnLabels = new List<string>(); | ||
public int rows { get; private set; } | ||
public int columns { get; private set; } | ||
|
||
public bool this[int x, int y] { | ||
get { | ||
return mtx[x, y]; | ||
} | ||
set { | ||
mtx[x, y] = value; | ||
} | ||
} | ||
|
||
public bool this[string sx, string sy] { | ||
get { | ||
int x = rowLabels.IndexOf(sx); | ||
int y = columnLabels.IndexOf(sy); | ||
if (x == -1 || y == -1) | ||
return false; | ||
return mtx[x, y]; | ||
} | ||
set { | ||
int x = rowLabels.IndexOf(sx); | ||
int y = columnLabels.IndexOf(sy); | ||
if (x != -1 && y != -1) | ||
mtx[x, y] = value; | ||
} | ||
} | ||
|
||
public string row(int i) { | ||
return rowLabels[i]; | ||
} | ||
|
||
public string column(int i) { | ||
return columnLabels[i]; | ||
} | ||
|
||
public BoolMatrix(int rows, int columns) { | ||
this.rows = rows; | ||
this.columns = columns; | ||
mtx = new bool[rows, columns]; | ||
for (int i = 0; i < rows; i++) { | ||
rowLabels.Add("" + i); | ||
} | ||
for (int i = 0; i < columns; i++) { | ||
columnLabels.Add("" + i); | ||
} | ||
} | ||
|
||
public BoolMatrix(bool[,] mtx) { | ||
this.mtx = mtx; | ||
this.rows = mtx.GetLength(0); | ||
this.columns = mtx.GetLength(1); | ||
|
||
for (int i = 0; i < rows; i++) { | ||
rowLabels.Add("" + i); | ||
} | ||
for (int i = 0; i < columns; i++) { | ||
columnLabels.Add("" + i); | ||
} | ||
} | ||
|
||
public BoolMatrix(string[] rows, string[] columns) { | ||
this.rows = rows.Length; | ||
this.columns = columns.Length; | ||
mtx = new bool[this.rows, this.columns]; | ||
this.rowLabels.AddRange(rows); | ||
this.columnLabels.AddRange(columns); | ||
} | ||
|
||
public void PushRow(string label) { | ||
bool[,] m = new bool[rows + 1, columns]; | ||
for (int i = 0; i < rows; i++) { | ||
for (int j = 0; j < columns; j++) { | ||
m[i, j] = mtx[i, j]; | ||
} | ||
} | ||
rows = rows + 1; | ||
mtx = m; | ||
rowLabels.Add(label); | ||
} | ||
|
||
public void PushColumn(string label) { | ||
bool[,] m = new bool[rows, columns + 1]; | ||
for (int i = 0; i < rows; i++) { | ||
for (int j = 0; j < columns; j++) { | ||
m[i, j] = mtx[i, j]; | ||
} | ||
} | ||
columns = columns + 1; | ||
mtx = m; | ||
rowLabels.Add(label); | ||
} | ||
|
||
public void PopRow() { | ||
if (rows < 2) | ||
return; | ||
|
||
bool[,] m = new bool[rows - 1, columns]; | ||
for (int i = 0; i < rows - 1; i++) { | ||
for (int j = 0; j < columns; j++) { | ||
m[i, j] = mtx[i, j]; | ||
} | ||
} | ||
rows = rows - 1; | ||
mtx = m; | ||
} | ||
|
||
public void PopColumn() { | ||
if (columns < 2) | ||
return; | ||
|
||
bool[,] m = new bool[rows, columns - 1]; | ||
for (int i = 0; i < rows; i++) { | ||
for (int j = 0; j < columns - 1; j++) { | ||
m[i, j] = mtx[i, j]; | ||
} | ||
} | ||
columns = columns - 1; | ||
mtx = m; | ||
} | ||
|
||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.