This file contains hidden or 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
#include "cinder/app/App.h" | |
#include "cinder/app/RendererGl.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/params/Params.h" | |
#include "cinder/Rand.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; |
This file contains hidden or 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
#include "cinder/app/AppNative.h" // Contains the AppNative class and the events. | |
#include "cinder/gl/gl.h" // Contains most OpenGL convenience functions. | |
#include "cinder/Camera.h" // For our camera. | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; | |
class CinderProjectApp : public AppNative { |
This file contains hidden or 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
#include "cinder/app/AppNative.h" | |
#include "cinder/app/RendererGl.h" | |
#include "cinder/gl/gl.h" | |
#undef near | |
#undef far | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; |
This file contains hidden or 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
/* | |
Copyright (c) 2014, Paul Houx - All rights reserved. | |
This code is intended for use with the Cinder C++ library: http://libcinder.org | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that | |
the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, this list of conditions and | |
the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and |
This file contains hidden or 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
#version 110 | |
void main(void) | |
{ | |
// calculate glowing line strips based on texture coordinate | |
const float resolution = 64.0; | |
const float center = 0.5; | |
const float width = 0.02; | |
float f = fract( resolution * gl_TexCoord[0].s + 2.0 * gl_TexCoord[0].t ); |
This file contains hidden or 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
#include "cinder/app/AppNative.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/gl/Vbo.h" | |
#include "cinder/Camera.h" | |
#include "cinder/MayaCamUI.h" | |
#include "cinder/Quaternion.h" | |
#include "cinder/Rand.h" | |
using namespace ci; | |
using namespace ci::app; |
This file contains hidden or 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
#version 150 | |
uniform sampler2D uTexture; | |
in VertexData { | |
vec3 baricentric; | |
vec4 color; | |
vec2 texcoord; | |
} vVertexIn; |
This file contains hidden or 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
#version 150 | |
uniform sampler2D uTexture; | |
in VertexData { | |
noperspective vec3 distance; | |
vec4 color; | |
vec2 texcoord; | |
} vVertexIn; |
This file contains hidden or 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
#include "DebugMesh.h" | |
using namespace ci; | |
using namespace ci::geom; | |
using namespace std; | |
DebugMesh::DebugMesh(void) | |
{ | |
enable( Attrib::POSITION ); | |
enable( Attrib::COLOR ); |
This file contains hidden or 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
#include "cinder/app/AppNative.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/gl/GlslProg.h" | |
#include "cinder/gl/Texture.h" | |
#include "cinder/Rand.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; |