Browse Source

Enable perspective warping on fresh quad surfaces

master
Krisjanis Rijnieks 9 years ago
parent
commit
ea70f5bd2d
  1. 1
      src/Surfaces/SurfaceFactory.cpp

1
src/Surfaces/SurfaceFactory.cpp

@ -61,6 +61,7 @@ QuadSurface * SurfaceFactory::createQuadSurface(){
texCoords.push_back(ofVec2f(ofVec2f(0.0f, 1.0f))); texCoords.push_back(ofVec2f(ofVec2f(0.0f, 1.0f)));
QuadSurface * quadSurface = new QuadSurface(); QuadSurface * quadSurface = new QuadSurface();
quadSurface->setPerspectiveWarping(true);
for(int i = 0; i < 4; i++){ for(int i = 0; i < 4; i++){
quadSurface->setVertex(i, vertices[i]); quadSurface->setVertex(i, vertices[i]);

Loading…
Cancel
Save