Skip to content

Commit

Permalink
'
Browse files Browse the repository at this point in the history
  • Loading branch information
moebiussurfing committed Nov 7, 2023
1 parent 51c2149 commit 9bc724e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/ofxSurfingPBR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,18 @@ void ofxSurfingPBR::keyPressed(int key) {
if (key == 'q') ofxSurfing::setWindowSquared(800);
if (key == 'Q') ofxSurfing::setWindowSquared(ofGetWidth());

if (key == '1') ofSetWindowShape(1080,566);
if (key == '2') ofSetWindowShape(1080,1350);
if (key == '3') ofSetWindowShape(1080,1920);
/*
* Instagram sizes
Social media image type Dimensions in pixels
Instagram Landscape Photo 1080 X 566 (1.91:1 ratio)
Instagram Portrait 1080 x 1350 (4:5 ratio)
Instagram Story 1080 x 1920 (9:16 ratio)
IGTV Cover Photo 420 x 654 (1:1.55 ratio)
*/

// Rajndomizers
if (key == OF_KEY_F1) doResetMaterial();
if (key == OF_KEY_F2) doRandomMaterial();
Expand Down
2 changes: 1 addition & 1 deletion src/ofxSurfingPBRConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// OPTIONAL

#define SURFING__USE__PLANE_SHADER_AND_DISPLACERS // TODO: WIP: add another shader/material.
//#define SURFING__USE__PLANE_SHADER_AND_DISPLACERS // TODO: WIP: add another shader/material.

//#define SURFING__USE__FILE_BROWSER // allow browse model files on the folder.

Expand Down

0 comments on commit 9bc724e

Please sign in to comment.