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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public enum AROUNDLR | |
{ | |
LEFT, | |
RIGHT | |
} |
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/BumpMapping" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex("MainTexture", 2D) = "white" {} | |
_BumpMap("NormalMap", 2D) = "white" {} | |
_BumpScale("NormalScale", Range(0,1)) = 0.5 | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 |
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/HeightDisappear" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Height ("Height", Float) = 0.0 | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } |
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/RimLightingStandard" { | |
Properties { | |
_MainColor ("MainColor", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_RimColor("RimColor",Color)=(1,1,1,1) | |
_RimPower("RimPower", Range(0.1, 10.0)) = 3.0 | |
_RimAmplitude("RimAmplitude",Float)=1 | |
_Alpha("Alpha",Range(0.0,1.0))=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
<?xml version="1.0" encoding="UTF-8" ?> | |
<resources> | |
<dimen name="Header_text_size">20dp</dimen> | |
<dimen name="Button_text_size">20dp</dimen> | |
<dimen name="Button_height">50dp</dimen> | |
</resources> |
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 "Unlit/RimLightEffect" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_MainColor("MainColor",Color)=(1,1,1,1) | |
_RimPower("RimPower",Float)=1 | |
_RimAmplitude("RimAmplitude",Float)=1 | |
_RimColor("RimColor",Color)=(1,1,1,1) | |
_Alpha("Alpha",Range(0.0,1.0))=1 |
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 "Unlit/Polygonoperator" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_MainColor("Color",Color)=(1,1,1,1) | |
_PositionFactor("Position Factor", Range(0.0, 1.0)) = 1.0 | |
_RotationFactor("Rotation Factor", Range(0.0, 1.0)) = 1.0 | |
_ScaleFactor("Scale Factor", Range(0.0, 1.0)) = 1.0 | |
_Destruction("Destruction Factor", Range(0.0, 1.0)) = 0.0 |
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 override void ViewDidLoad() | |
{ | |
base.ViewDidLoad(); | |
NumberField.EditingChanged += (sender, e) => | |
{ | |
int number; | |
int.TryParse(((UITextField)sender).Text, out number); | |
NumberField.Text = number.ToString(); | |
}; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AccSensor : MonoBehaviour { | |
public Vector3 acc_dir; | |
void Update () { |
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; | |
public class ShaderReplace : MonoBehaviour { | |
public Shader replaceShader; | |
void Update () { | |
if(Input.GetKey(KeyCode.A)) | |
{ |
NewerOlder