Project

General

Profile

« Previous | Next » 

Revision 477fc548

Added by Leszek Koltunski about 7 years ago

Revert "Minor."

This reverts commit 1a23144587625d973a62c479cf0aef57e2958de1.

View differences:

src/main/java/org/distorted/examples/mirror/MirrorRenderer.java
46 46
class MirrorRenderer implements GLSurfaceView.Renderer
47 47
{
48 48
   private static final float MIRROR_SCALE     =0.70f;  // each next mirror will be 70% of the size or the previous
49
   private static final float HEAD_SCALE       =0.40f;  // Head's height will be 40% of the height of the mirror
49
   private static final float HEAD_SCALE       =0.40f;  // Head's height will be 30% of the height of the mirror
50 50
   private static final float MIRROR_BRIGHTNESS=0.70f;  // Each next mirror 30% darker
51 51
   private static final float MIRROR_MARGIN    =0.09f;  // The frame of the mirror takes up 9% of its width
52 52
   private static final float MIRROR_MOVE      =0.12f;  // Each next mirror is moved to the right by 12% of
......
190 190
      mHeadW = bitmapH.getWidth();
191 191
      mHeadH = bitmapH.getHeight();
192 192

  
193
      if( mTextureMirror==null ) mTextureMirror = new DistortedTexture(1,1);
194
      if( mTextureHead  ==null ) mTextureHead   = new DistortedTexture(1,1);
193
      if( mTextureMirror==null ) mTextureMirror = new DistortedTexture(bitmapM.getWidth(),bitmapM.getHeight());
194
      if( mTextureHead  ==null ) mTextureHead   = new DistortedTexture(mHeadW, mHeadH);
195 195

  
196 196
      mTextureMirror.setTexture(bitmapM);
197 197
      mTextureHead.setTexture(bitmapH);

Also available in: Unified diff