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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>three.js webgl - materials - wireframe</title> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background:#000; | |
color:#fff; | |
padding: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
#include "ofMain.h" | |
class LODMeshInstanced{ | |
public: | |
ofVboMesh tile; | |
ofShader* shader; | |
int levels, totalWidth, resolution, numTiles; | |
vector<ofVec3f>tilePositions; | |
vector<float>tileScale; |
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
#include "ofMain.h" | |
class ofApp : public ofBaseApp{ | |
public: | |
ofVboMesh mesh; | |
int resolution; | |
int numVertices; | |
ofEasyCam cam; | |
//-------------------------------------------------------------- | |
void setup(){ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>three.js webgl - materials - wireframe</title> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background:#000; | |
color:#fff; | |
padding: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
#include "ofMain.h" | |
class ofApp : public ofBaseApp{ | |
public: | |
ofRectangle viewport; | |
bool bUseOrtho, bUseCamera; | |
ofCamera cam; | |
//-------------------------------------------------------------- |
NewerOlder