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
fixed3 Darken (fixed3 a, fixed3 b) | |
{ | |
return min(a, b); | |
} | |
fixed3 Multiply (fixed3 a, fixed3 b) | |
{ | |
return a * b; | |
} |
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
#include "Saga.h" | |
#include "BlueprintUtils.h" | |
FDateTime UBlueprintUtils::StringToDatetime(const FString& dateTimeString) | |
{ | |
FString modifiedString; | |
dateTimeString.Split(TEXT("."), &modifiedString, nullptr); | |
FDateTime dateTime; | |
FDateTime::ParseIso8601(*modifiedString, dateTime); |
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 "GrabTexBug" | |
{ | |
Properties | |
{ | |
[PerRendererData] | |
_MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,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
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using System.Collections; | |
using System.Collections.Generic; | |
public class vgPlayerCollisionTester : vgMonoBehaviour |
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 UnityEditor; | |
[InitializeOnLoad] | |
public class AutosaveOnRun | |
{ | |
static AutosaveOnRun() | |
{ | |
EditorApplication.playmodeStateChanged = () => | |
{ | |
if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying) |
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
Add-AzureAccount | |
$vm = Get-AzureVM -ServiceName "example-service-name" -Name "example-vm-name" | |
for ($i=7000; $i -le 7100; $i++) | |
{ | |
$EndpointName = "EXAMPLE-" | |
$EndpointName += $i | |
Add-AzureEndpoint -Name $EndpointName -Protocol "udp" -PublicPort $i -LocalPort $i -VM $vm | |
} | |
$vm | Update-AzureVM |
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 "BlendModes/MeshDefault/Grab" | |
{ | |
Properties | |
{ | |
_Color("Tint Color", Color) = (1,1,1,1) | |
_MainTex("Base (RGB)", 2D) = "white" {} | |
} | |
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
using System; | |
using UnityEngine; | |
namespace UnityStandardAssets.ImageEffects | |
{ | |
[ExecuteInEditMode] | |
[RequireComponent (typeof(Camera))] | |
[AddComponentMenu ("Image Effects/Other/Screen Overlay")] | |
public class ScreenOverlay : PostEffectsBase | |
{ |
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 "BlendModes/Extra/DirectSurfMesh" | |
{ | |
Properties | |
{ | |
_Color("Tint Color", Color) = (1,1,1,1) | |
_MainTex("Base (RGB)", 2D) = "white" {} | |
} | |
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 "BlendModes/Extra/BlendLightedMesh" | |
{ | |
Properties | |
{ | |
_Color ("Tint Color", Color) = (1,1,1,1) | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_NormalMap ("Normal Map", 2D) = "bump" {} | |
_BumpDepth ("Bump Depth", Range(0.0, 1.0)) = 1.0 | |
} | |
OlderNewer