Revision 63fc1eaf
Added by Leszek Koltunski over 8 years ago
src/main/java/org/distorted/examples/effects2d/Effects2DActivity.java | ||
---|---|---|
80 | 80 |
String[] itemsName = new String[] { getText(R.string.distort ).toString(), |
81 | 81 |
getText(R.string.sink ).toString(), |
82 | 82 |
getText(R.string.alpha ).toString(), |
83 |
getText(R.string.brightness).toString(),
|
|
83 |
getText(R.string.saturation).toString(),
|
|
84 | 84 |
getText(R.string.chroma).toString()}; |
85 | 85 |
|
86 | 86 |
String[] itemsType = new String[] {"VERTEX", "FRAGMENT"}; |
... | ... | |
182 | 182 |
case 0: name = EffectNames.DISTORT ; break; |
183 | 183 |
case 1: name = EffectNames.SINK ; break; |
184 | 184 |
case 2: name = EffectNames.SMOOTH_ALPHA ; break; |
185 |
case 3: name = EffectNames.BRIGHTNESS ; break;
|
|
185 |
case 3: name = EffectNames.SATURATION ; break;
|
|
186 | 186 |
case 4: name = EffectNames.SMOOTH_CHROMA; break; |
187 | 187 |
default: name = EffectNames.CONTRAST ; |
188 | 188 |
} |
src/main/java/org/distorted/examples/effects2d/Effects2DSurfaceView.java | ||
---|---|---|
160 | 160 |
case 2: id = Effects2DRenderer.mBackground.alpha(mInterA, mRegion, true); |
161 | 161 |
act.effectAdded(id, EffectNames.ALPHA, EffectTypes.FRAGMENT); |
162 | 162 |
break; |
163 |
case 3: id = Effects2DRenderer.mBackground.brightness(mInterB, mRegion, false);
|
|
164 |
act.effectAdded(id, EffectNames.BRIGHTNESS, EffectTypes.FRAGMENT);
|
|
163 |
case 3: id = Effects2DRenderer.mBackground.saturation(mInterB, mRegion, false);
|
|
164 |
act.effectAdded(id, EffectNames.SATURATION, EffectTypes.FRAGMENT);
|
|
165 | 165 |
break; |
166 | 166 |
case 4: id = Effects2DRenderer.mBackground.chroma(mInterC, mRED, mRegion, true); |
167 | 167 |
act.effectAdded(id, EffectNames.CHROMA, EffectTypes.FRAGMENT); |
Also available in: Unified diff
Remove the MACROBLOCK Effect altogether.