Revision 977756d7
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/main/DistortedRenderState.java | ||
---|---|---|
184 | 184 |
} |
185 | 185 |
} |
186 | 186 |
|
187 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
188 |
|
|
189 |
static void disableBlending() |
|
190 |
{ |
|
191 |
sState.blend = cState.blend; |
|
192 |
|
|
193 |
if (cState.blend != 0) |
|
194 |
{ |
|
195 |
cState.blend = 0; |
|
196 |
GLES31.glDisable(GLES31.GL_BLEND); |
|
197 |
} |
|
198 |
} |
|
199 |
|
|
200 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
201 |
|
|
202 |
static void restoreBlending() |
|
203 |
{ |
|
204 |
if (sState.blend != cState.blend) |
|
205 |
{ |
|
206 |
cState.blend = sState.blend; |
|
207 |
|
|
208 |
if (cState.blend == 0) |
|
209 |
{ |
|
210 |
GLES31.glDisable(GLES31.GL_BLEND); |
|
211 |
} |
|
212 |
else |
|
213 |
{ |
|
214 |
GLES31.glEnable(GLES31.GL_BLEND); |
|
215 |
} |
|
216 |
} |
|
217 |
} |
|
218 |
|
|
187 | 219 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
188 | 220 |
|
189 | 221 |
static void enableDepthTest() |
Also available in: Unified diff
Fix the bug where the postprocessed GLOW halo of a Cube would be of different colors depending on the order of rendring of the cube sides. (one needed to switch off BLENDing while preprocessing )