Revision be169c10
Added by Leszek Koltunski about 6 years ago
src/main/java/org/distorted/examples/glow/GlowRenderer.java | ||
---|---|---|
66 | 66 |
|
67 | 67 |
mRootW = LEAF_SIZE; |
68 | 68 |
mRootH = LEAF_SIZE; |
69 |
mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE);
|
|
69 |
mLeaf = new DistortedTexture(mRootW,mRootH);
|
|
70 | 70 |
mMove = new Static3D(0,0,0); |
71 | 71 |
mScale = new Static3D(1,1,1); |
72 | 72 |
mRadius= new Static1D(25); |
... | ... | |
123 | 123 |
{ |
124 | 124 |
float qw = (float)width /mRootW; |
125 | 125 |
float qh = (float)height/mRootH; |
126 |
float factor = 0.5f* (qw<qh ? qw:qh);
|
|
126 |
float factor = 0.8f* (qw<qh ? qw:qh);
|
|
127 | 127 |
int w = (int)(factor*mRootW); |
128 | 128 |
int h = (int)(factor*mRootH); |
129 | 129 |
|
Also available in: Unified diff
Minor.