Revision 889a962e
Added by Leszek Koltunski over 8 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DEffect.java | ||
---|---|---|
133 | 133 |
break; |
134 | 134 |
|
135 | 135 |
case ALPHA : |
136 |
case SMOOTH_ALPHA : |
|
137 |
case BRIGHTNESS : |
|
138 |
case SMOOTH_BRIGHTNESS: |
|
136 |
case SMOOTH_ALPHA : mSta1.set(mInter[0]/100.0f); |
|
137 |
break; |
|
139 | 138 |
case SATURATION : |
140 | 139 |
case SMOOTH_SATURATION: |
141 | 140 |
case CONTRAST : |
142 |
case SMOOTH_CONTRAST : mSta1.set(mInter[0]/100.0f); |
|
141 |
case SMOOTH_CONTRAST : |
|
142 |
case BRIGHTNESS : |
|
143 |
case SMOOTH_BRIGHTNESS: mSta1.set(mInter[0] > 50 ? 50.0f/(100.01f-mInter[0]) : mInter[0] / 50.0f); |
|
143 | 144 |
break; |
144 |
|
|
145 | 145 |
case CHROMA : |
146 | 146 |
case SMOOTH_CHROMA : mSta1.set(mInter[0]/100.0f); |
147 |
mSta3.set(255.0f*mInter[1]/100,
|
|
148 |
255.0f*mInter[2]/100,
|
|
149 |
255.0f*mInter[3]/100);
|
|
147 |
mSta3.set(mInter[1]/100.0f,
|
|
148 |
mInter[2]/100.0f,
|
|
149 |
mInter[3]/100.0f);
|
|
150 | 150 |
break; |
151 | 151 |
} |
152 | 152 |
} |
Also available in: Unified diff
Fixes for fragment effects in Effects3D.