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; | |
public class SetSortingLayer : MonoBehaviour | |
{ | |
public string sortingLayerName; | |
public int sortingLayerOrder; | |
void Start() { | |
renderer.sortingLayerName = sortingLayerName; |
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
app.configure(function () { | |
app.use(express.static(__dirname + '/public')); | |
app.use(express.bodyParser()); | |
app.set('views', __dirname); | |
//app.set('view engine', 'jade'); | |
// make a custom html template | |
app.register('.html', { | |
compile: function(str, options){ | |
return function(locals){ | |
return str; |
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
////////////////////////Draw a head////////////////////////////// | |
fill(100 + random(150), 100 + random(150), 100 + random(150)); | |
for ( int i = 0; i < numLines; ++i ) { | |
beginShape(); | |
for ( float angle = 0; angle < 360; angle += step ) { | |
float radian = radians( angle ); | |
x = xCenter + ( headXRadius * cos( radian ) ) + random(15); | |
y = yCenter - ( headYRadius * sin( radian ) ) + random(20); | |
if ( lastx > -999 ) { |
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
/////////////////////////////////////////////////////////////////////////////// | |
// ATMOSPHERIC SCATTERING | |
// Viewing the sky from within the atmosphere. | |
// | |
// Based on OGRE Forum user HexiDave's Atmospheric Scattering demo | |
// http://www.ogre3d.org/forums/viewtopic.php?t=37072 | |
/////////////////////////////////////////////////////////////////////////////// | |
/////////////////////////////////////////////////////////////////////////////// |
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
/////////////////////////////////////////////////////////////////////////////// | |
// ATMOSPHERIC SCATTERING | |
// Viewing the sky from space. | |
// | |
// Based on OGRE Forum user HexiDave's Atmospheric Scattering demo | |
// http://www.ogre3d.org/forums/viewtopic.php?t=37072 | |
/////////////////////////////////////////////////////////////////////////////// | |
/////////////////////////////////////////////////////////////////////////////// |
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
#import "PdAudio.h" | |
#import "PdBase.h" | |
#import "PdDispatcher.h" | |
#import "Listener.h" | |
#import "PointerObject.h" | |
extern "C" { | |
extern void lrshift_tilde_setup(void); | |
extern void argument_setup(void); | |
extern void phasorshot_tilde_setup(void); |
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
void _sendSymbolToReceiver(char * symbol, int symLength, char * receiver, int recLength) | |
{ | |
NSString * _receiver = [[NSString alloc] initWithData:[NSData dataWithBytes:receiver length:recLength] encoding:NSUTF16LittleEndianStringEncoding]; | |
NSString * _symbol = [[NSString alloc] initWithData:[NSData dataWithBytes:symbol length:symLength] encoding:NSUTF16LittleEndianStringEncoding]; | |
[PdBase sendSymbol:_symbol toReceiver:_receiver]; | |
[_symbol release]; | |
[_receiver release]; | |
} |
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.Runtime.InteropServices; | |
public class PureData { | |
/* Interface to native implementation */ | |
[DllImport ("__Internal")] | |
private static extern void _copyDemoPatchesToUserDomain (); | |
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; | |
public class TrailerTarget : MonoBehaviour { | |
public Transform[] positions; | |
public float[] times; | |
private int current_index; | |
IEnumerator OnTrailer() | |
{ |
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; | |
public class Synth : MonoBehaviour { | |
private int transpose = 48; | |
public void play(int note) { | |
PureData.sendFloat(note + transpose, "note"); | |
} |
OlderNewer