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 System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Diagnostics; | |
| namespace loopBenchmark | |
| { | |
| class Program |
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
| /* Procedural Terrain Generation | |
| * Peter Taylor (EmersonT1) | |
| * Created: 29th November 2015 | |
| * A C# implementation of http://www.stuffwithstuff.com/robot-frog/3d/hills/index.html | |
| */ | |
| using System; | |
| namespace Test1 | |
| { | |
| class TerrainGen |
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
| Shader "GUI/3D Text Shader" { | |
| Properties | |
| { | |
| _MainTex("Font Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags{ "RenderType" = "Transparent" "Queue" = "Transparent" } |
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
| public TileLocation[] GetTouchingTiles(float distance) { | |
| TileLocation thisTile = GetTileLocation(); | |
| List<TileLocation> touchingTiles = new List<TileLocation>(); | |
| // +1,-1 | |
| if (Distance(new LatLng(thisTile.Latitude + 1, thisTile.Longitude)) <= distance) | |
| touchingTiles.Add(thisTile + new TileLocation(1, -1)); | |
| // +1,0 | |
| if (Distance(new LatLng(thisTile.Latitude + 1, Longitude)) <= distance) |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using UnityEngine; | |
| public class Matrix { | |
| private float[,] data; | |
| public int Rows { get; private set; } | |
| public int Columns { get; private set; } |
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
| Shader "Custom/PlantShader" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "gray" {} | |
| _Ambience("Ambience", Float) = 1 | |
| } | |
| SubShader | |
| { | |
| //Tags { "Queue" = "AlphaTest" "RenderType" = "Transparent" } |
OlderNewer