Project

General

Profile

« Previous | Next » 

Revision a09ada4c

Added by Leszek Koltunski about 7 years ago

Preparation for change of the render API.

View differences:

src/main/java/org/distorted/library/DistortedTexture.java
41 41
// upper-left corner. Everywhere else the origin is in the lower-left corner. Thus we have to flip.
42 42
// The alternative solution, namely inverting the y-coordinate of the TexCoord does not really work-
43 43
// i.e. it works only in case of rendering directly to the screen, but if we render to an FBO and
44
// then take the FBO and render to screen, (DistortedTree does so!) things get inverted as textures
44
// then take the FBO and render to screen, (DistortedNode does so!) things get inverted as textures
45 45
// created from FBO have their origins in the lower-left... Mindfuck!
46 46

  
47 47
  private static Bitmap flipBitmap(Bitmap src)

Also available in: Unified diff