杉野 裕則
インタラクティブチーム リーダー
お絵かき水族館画像 鈴鹿高専を経て武蔵野美術大学を卒業後、2011年チームラボ入社。イベント演出、アートインスタレーション等、インタラクティブコンテンツの開発を行う。「チームラボアイランド 学ぶ!未来の遊園地」では、「お絵かき水族館」等を担当。昨年開催されたミラノ万博では、「HARMONY」にて映像プログラミングを担当
Shader "Hidden/MeshDataWriter" | |
{ | |
SubShader | |
{ | |
Pass | |
{ | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag | |
#pragma target 4.5 |
@echo off | |
if not "%~0"=="%~dp0.\%~nx0" ( | |
start /min cmd /c,"%~dp0.\%~nx0" %* | |
exit | |
) | |
timeout /T 30 | |
:begin | |
taskkill /F /IM explorer.exe |
using UnityEngine; | |
public class Converter | |
{ | |
public static Texture2D ConvertTextureUV(Texture tex, Mesh mesh, int width = 512, int height = 512) | |
{ | |
var rt = new RenderTexture(width, height, 0, RenderTextureFormat.ARGB32); | |
RenderTexture.active = rt; | |
GL.Clear(true, true, Color.clear); |
using UnityEngine; | |
using System.Collections; | |
public class InvokeMethod : MonoBehaviour | |
{ | |
void Start() | |
{ | |
this.Invoke(SomeMethod, 5f); | |
} |
Shader "Unlit/SimpleGeometry" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
public class CreateCgincExtent{ | |
[MenuItem("Assets/Create/cginc file")] | |
public static void CreateCginc() | |
{ | |
var path = GetCurrentProjectWindowPath(); | |
path = Path.Combine(path, "newCginc.cginc"); |
いったん、localにクローンすると、画像とかもアップできるそう
http://tweeeety.hateblo.jp/entry/2015/08/31/140211
ImageのURLは、フルパスで入れないとダメみたい。。
Shader "Unlit/UnlitCastShadow" | |
{ | |
Properties | |
{ | |
_MainTex("Texture", 2D) = "white" {} | |
} | |
CGINCLUDE | |
#include "UnityCG.cginc" | |
struct appdata |