Skip to content

Instantly share code, notes, and snippets.

View n0mimono's full-sized avatar

Ryota Yokote n0mimono

View GitHub Profile
@n0mimono
n0mimono / YouTubeLiveController.cs
Created February 12, 2018 06:10
Unity script example for YouTube Live Streaming API
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System;
using System.Net;
using System.Text.RegularExpressions;
using UnityEngine;
using UnityEngine.Networking;
using SimpleJSON;
namespace UnityChan {
public class SpringManagerForVRIK : SpringManager {
void Start() {
springBones = GetComponentsInChildren<SpringBone>();
}
void LateUpdate() {
var solver = GetComponent<RootMotion.FinalIK.VRIK>();
solver.UpdateSolverExternal();
resources
// ref: https://wgld.org/
// ref: http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
// ref: http://blog.hvidtfeldts.net/
// ref: https://www.shadertoy.com/view/lsl3W2
Shader "Raymarch_Object_Deferred_World_Fractal_02" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
_Value ("Value", Vector) = (1,1,1,1)
_Iteration ("Iteration", Float) = 32
Shader "Raymarch_Deferred" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
_Albedo ("Albedo", Color) = (1,1,1,1)
_Specular ("Specular", Color) = (0.5, 0.5, 0.5, 0.9)
_Emission ("Emission", Color) = (0, 0, 0, 0)
}
/////////////////////////////////////////////////////
CGINCLUDE
// ref: https://wgld.org/
// ref: http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
// ref: http://blog.hvidtfeldts.net/
Shader "Raymarch_Object_Deferred_World_Fractal_02" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
_Value ("Value", Vector) = (1,1,1,1)
}
SubShader {
// ref: https://wgld.org/
// ref: http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
Shader "Raymarch_Object_Deferred_World" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
}
SubShader {
Pass {
Tags { "LightMode"="Deferred" }
// ref: https://wgld.org/
// ref: http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
Shader "Raymarch_Object_Deferred" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
}
SubShader {
Pass {
Tags { "LightMode"="Deferred" }
// ref: https://wgld.org/
// ref: http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
Shader "Raymarch_Object" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
}
SubShader {
Pass {
Tags { "LightMode"="ForwardBase" }
// ref: https://wgld.org/
// ref: http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
Shader "Raymarch" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
}
SubShader {
Pass {
CGPROGRAM