Project

General

Profile

« Previous | Next » 

Revision db57e5cb

Added by Leszek Koltunski over 1 year ago

minor

View differences:

src/main/java/org/distorted/library/main/InternalOutputSurface.java
65 65
  int mCurrFBO;     // internal current FBO (see DistortedLibrary.FBO_QUEUE_SIZE)
66 66
  int mWidth, mHeight;
67 67

  
68
static final float[] tmpM = new float[16];
69

  
70 68
///////////////////////////////////////////////////////////////////////////////////////////////////
71 69

  
72 70
  InternalOutputSurface(int width, int height, int createColor, int numfbos, int numcolors, int depthStencil, int fbo, int type, int storage)
......
144 142
        float c = mHeight*mNear;
145 143

  
146 144
        float left   = -q/2;
147
        float right  = +q/2;
145
        float right  =  q/2;
148 146
        float bottom = -c/2;
149
        float top    = +c/2;
147
        float top    =  c/2;
150 148
        float near   =  c/a;
151 149

  
152 150
        mDistance    = mHeight/a;
......
157 155
      else             // parallel projection
158 156
        {
159 157
        float left   = -mWidth/2.0f;
160
        float right  = +mWidth/2.0f;
158
        float right  =  mWidth/2.0f;
161 159
        float bottom = -mHeight/2.0f;
162
        float top    = +mHeight/2.0f;
160
        float top    =  mHeight/2.0f;
163 161
        float near   = mWidth+mHeight-mHeight*(1.0f-mNear);
164 162
        mDistance    = mWidth+mHeight;
165 163
        float far    = mWidth+mHeight+mHeight*(1.0f-mNear);

Also available in: Unified diff