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 "VertexColour" | |
{ | |
SubShader | |
{ | |
Pass | |
{ | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#include "UnityCG.cginc" |
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 "VertexColorSize" { | |
SubShader { | |
Pass { | |
GLSLPROGRAM | |
#ifdef VERTEX | |
varying vec4 v_color; | |
void main() | |
{ | |
gl_PointSize = 10.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
using UnityEngine; | |
using System.Collections; | |
// Activate head tracking using the gyroscope | |
// The script must be linked to the main camera | |
public class HeadTracking : MonoBehaviour | |
{ | |
// The initials orientation | |
private int initialOrientationX; | |
private int initialOrientationY; |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Wireframe : MonoBehaviour | |
{ | |
public Color lineColor; | |
public Material lineMaterial; | |
private MeshFilter filter; |
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 "FX/Matte Shadow" { | |
Properties { | |
_Color ("Shadow Color", Color) = (1,1,1,1) | |
_ShadowInt ("Shadow Intensity", Range(0,1)) = 1.0 | |
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5 | |
} | |
SubShader { | |
Tags { |
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
/* | |
wireframe update benjamin kiesewetter 2013 | |
faster | |
normals | |
vertex extensions | |
*/ | |
using UnityEngine; | |
using System.Collections; |
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
// Author: Fabien ROUALDES | |
// Date: 31/01/2016 | |
// | |
// | |
// Render objects which are in the radar field of view. | |
// The radar is rotating around a camera | |
// | |
using UnityEngine; | |
using System.Collections; |