- Ruby拡張機能インストール(https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby)
- hoge
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.Runtime.InteropServices; | |
using UnityEngine; | |
public class ColorTest : MonoBehaviour | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
public struct Color32RGBA | |
{ | |
[FieldOffset(0)] | |
public byte R; |
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/SampleShader1" { | |
Properties{ | |
_ColorSpace("Color Space", Int) = 0 // Gamma=0, Linear=1 | |
_Collect("Gamma", Float) = 2.2 | |
_MainTex("Main Tex", 2D) = "white" {} | |
} | |
SubShader{ | |
Tags { "RenderType" = "Opaque" } | |
CGPROGRAM | |
#pragma surface surf Lambert //alpha |
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
var LibraryWebCamWebGL = { | |
$webcam: { | |
canvas: null | |
}, | |
JS_WebCam_IsSupported: function () { | |
var getMedia = navigator.getUserMedia || | |
navigator.webkitGetUserMedia || | |
navigator.mozGetUserMedia || | |
navigator.msGetUserMedia; |
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
var MediaDevices = []; | |
Module['preRun'].push(function () { | |
var enumerateMediaDevices = function () { | |
var getMedia = navigator.getUserMedia || | |
navigator.webkitGetUserMedia || | |
navigator.mozGetUserMedia || | |
navigator.msGetUserMedia; |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script> | |
<script src="https://rawgit.com/otalk/sdp/master/sdp.js"></script> | |
<script src="https://webrtc.github.io/samples/src/js/third_party/graph.js"></script> | |
<style> | |
video { | |
width: 320px; |
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
const series = {}; | |
const graphs = {}; | |
const dataTypes = ['bytesSent', 'framesEncoded']; | |
let lastSendResult; | |
let lastRecvResult; | |
function show(stream, side) { | |
const id = side !== 'local' ? stream.id : 'local'; | |
const container = document.createElement('div'); |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script> | |
<script src="https://rawgit.com/otalk/sdp/master/sdp.js"></script> | |
<script src="https://webrtc.github.io/samples/src/js/third_party/graph.js"></script> | |
<style> | |
video { | |
width: 320px; | |
} |