Project

General

Profile

« Previous | Next » 

Revision 5a683295

Added by Leszek Koltunski about 4 years ago

Size of the FBO internal to Nodes is now NO MORE taken from the Mesh's stretch values.
Instead, the size is copied from child's FBO size (if there is one) or if the child is a leaf with texture in it (which is sizeless) then we get the default 100x100 ( which means we probably have to explicitly call Node.resizeFBO() )

View differences:

src/main/java/org/distorted/examples/stencil/StencilRenderer.java
201 201
      mScale.set(scale,scale,scale);
202 202
      mFBOScale.set((float)width/bw, (float)height/bh, 1.0f );
203 203

  
204
      mFBONode.resize(width,height);
204
      mFBONode.resizeFBO(width,height);
205 205
      mScreen.resize( width,height);
206 206
      }
207 207

  

Also available in: Unified diff