Revision 421c2728
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedTexture.java | ||
---|---|---|
50 | 50 |
// upper-left corner. Everywhere else the origin is in the lower-left corner. Thus we have to flip. |
51 | 51 |
// The alternative solution, namely inverting the y-coordinate of the TexCoord does not really work- |
52 | 52 |
// i.e. it works only in case of rendering directly to the screen, but if we render to an FBO and |
53 |
// then take the FBO and render to screen, (DistortedObjectTree does so!) things get inverted as textures
|
|
53 |
// then take the FBO and render to screen, (DistortedTree does so!) things get inverted as textures |
|
54 | 54 |
// created from FBO have their origins in the lower-left... Mindfuck! |
55 | 55 |
|
56 | 56 |
private static Bitmap flipBitmap(Bitmap src) |
Also available in: Unified diff
Change of names.