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 UnityEngine; | |
public class MyVector3 | |
{ | |
public static implicit operator Vector3(MyVector3 mv) | |
{ | |
return new Vector3(mv.X, mv.Y, mv.Z); | |
} | |
public static implicit operator MyVector3(Vector3 v) |
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
precision mediump float; | |
uniform vec3 u_LightPos; | |
uniform vec3 u_EyeVec; | |
uniform int u_Seconds; | |
uniform sampler2D u_Video0; | |
uniform sampler2D u_Video1; | |
uniform sampler2D u_Video2; | |
uniform sampler2D u_Video3; |
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
#version 400 | |
out vec4 FragColor; | |
// self explanatory uniforms | |
uniform vec2 u_ScreenSize; | |
uniform vec2 u_MousePos; | |
uniform float u_Scale; | |
// These uniforms are sent from cpu |
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
#version 400 | |
/*********************************************************** | |
* **************** Awesome ASCII art ********************** | |
* ********************************************************* | |
y | |
^ | |
| | |
gl_vertexID = 1 | gl_vertexID = 2 | |
(-1, 1)V1 * . . |...................* V2(3, 1) |
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
#version 400 | |
layout ( location = 0 ) in vec3 Position; | |
layout ( location = 1 ) in vec2 TexCoord; | |
layout ( location = 2 ) in vec3 Normal; | |
uniform mat4 gWVP; | |
uniform mat4 gWorld; | |
uniform float gRandomVar; | |
uniform sampler2D gDispMap; |
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
# awesome back-up script by | |
# Deniz UGURCA | |
outputDirectory = "G:/BackUpDirectory/" | |
inputDirectory = "C:/FilesToBackUp/" | |
import os | |
from datetime import * | |
prefix = "_savePrefix" |