Пример #1
0
  public void setup() {
    super.setup();

    _texture = p.createGraphics(p.width, p.height, P.OPENGL);
    _texture.smooth(OpenGLUtil.SMOOTH_HIGH);
    _texture.beginDraw();
    _texture.background(0);
    _texture.endDraw();
  }
Пример #2
0
  public void setup() {
    super.setup();

    ((PGraphics) g).textureWrap(Texture.REPEAT);
    //		_warpShader = p.loadShader(FileUtil.getFile("shaders/texturewarp/round-tunnel.glsl"));
    _warpShader = p.loadShader(FileUtil.getFile("shaders/texturewarp/square-tunnel.glsl"));
    _warpShader.set("time", p.frameCount / 100f);
    PImage img = p.loadImage(FileUtil.getFile("images/ello-grid-crap-512.png"));
    _warpShader.set("textureInput", img);
  }
Пример #3
0
 public void setup() {
   super.setup();
   p.smooth(OpenGLUtil.SMOOTH_HIGH);
   buildCanvas();
 }
Пример #4
0
 public void keyPressed() {
   super.keyPressed();
   if (p.key == ' ') {}
 }
Пример #5
0
 public void setup() {
   super.setup();
   buff = new FloatBuffer(10);
 }