Project

General

Profile

« Previous | Next » 

Revision 77fcb24d

Added by Leszek Koltunski almost 8 years ago

Fix for Bug #17: Regions of Fragment Effects migrate.

Fix is: don't send vertex position and the Fragment Effect region to the fragment shader already multiplied by the ModelView matrix (that introduces the imprecise interpolation because of the projection effect) but simply send both of them in local coords.

View differences:

src/main/java/org/distorted/library/DistortedObject.java
168 168
    mV.send();
169 169
        
170 170
    mF.compute(currTime);
171
    mF.postprocess(mViewMatrix);
172 171
    mF.send();
173 172
       
174 173
    mGrid.draw();

Also available in: Unified diff