OpenFrameworks Plastic textures generator.
In order to install OpenFrameworks, find the guide here.
The addon works with ofxAutoReloadedShader
, that's the only dependency. It has been added as a local addon in order to get the exact same version.
There is only one header for easy reading, and only one shader file too.
The addon can be used as a local_addon or not, the line 14 of ofxPlasticTexture.hpp
must be commented out if not used as a local addon:
#define LOCALADDON
in order to get the right path.
Add this to your OF/apps
folder.
Add this to your OF/addons
folder, and comment out :
#define LOCALADDON
from ofxPlasticTexture.hpp
line 14.
Try the example.
// ==== ofApp.cpp
if(key == ' ')plastic.updateTexture(); // changes textures offset
if(key == 'r')plastic.resetTextureOffset(); // reset offset to (0,0)
if(key == 'm')plastic.moveTexture(); // noise Offset Moves / Stops
- pierre Tardif codingcoolsh.it 💾
This project is licensed under the MIT License - see the LICENSE.md file for details.