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.Rendering.Universal; | |
public class DownSamplingRenderFeature : ScriptableRendererFeature | |
{ | |
DownSamplingRenderPass _renderPass; | |
public override void Create() | |
{ | |
// パスの作成 | |
_renderPass = new DownSamplingRenderPass |
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.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
#if UNITY_EDITOR | |
using UnityEditor.Animations; | |
#endif | |
/// <summary> | |
/// Mecanimモーション確認用のUIパネル | |
/// </summary> |
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
// https://www.shadertoy.com/view/4sfGzS | |
float hash(vec3 p) // replace this by something better | |
{ | |
p = fract( p*0.3183099+.1 ); | |
p *= 17.0; | |
return fract( p.x*p.y*p.z*(p.x+p.y+p.z) ); | |
} | |
float noise( in vec3 x ) | |
{ |
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
// 送信側 | |
radio.setGroup(1) | |
input.onButtonPressed(Button.A, () => { | |
radio.sendString("A") | |
}) | |
input.onButtonPressed(Button.B, () => { | |
radio.sendString("B") | |
}) | |
input.onButtonPressed(Button.AB, () => { | |
radio.sendString("AB") |
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
/******************************************************************************* | |
* Don't Be a Jerk: The Open Source Software License. | |
* Adapted from: https://github.com/evantahler/Dont-be-a-Jerk | |
******************************************************************************* | |
* _I_ am the software author - JohannesMP on Github. | |
* _You_ are the user of this software. You might be a _we_, and that's OK! | |
* | |
* This is free, open source software. I will never charge you to use, | |
* license, or obtain this software. Doing so would make me a jerk. | |
* |
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
public class Perlin { | |
public int repeat; | |
public Perlin(int repeat = -1) { | |
this.repeat = repeat; | |
} | |
public double OctavePerlin(double x, double y, double z, int octaves, double persistence) { | |
double total = 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
// ファイルマネージャを作成 | |
NSFileManager *fileManager = [NSFileManager defaultManager]; | |
// ファイルが存在するか? | |
if ([fileManager fileExistsAtPath:filePath]) { // yes | |
NSLog(@"%@は既に存在しています", filePath); | |
} else { | |
NSLog(@"%@は存在していません", filePath); | |
} |