Revision 99730f26
Added by Leszek Koltunski over 6 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
479 | 479 |
|
480 | 480 |
GLES31.glDrawArrays(GLES31.GL_TRIANGLE_STRIP, 0, mesh.numVertices); |
481 | 481 |
|
482 |
if( mesh.mShowNormals ) displayNormals(mesh); |
|
482 |
if( mesh.mShowNormals ) |
|
483 |
{ |
|
484 |
mMainProgram.useProgram(); |
|
485 |
mM.send(surface,halfW,halfH,halfZ,0,0); |
|
486 |
mV.send(0); |
|
487 |
mF.send(0); |
|
488 |
displayNormals(mesh); |
|
489 |
} |
|
483 | 490 |
} |
484 | 491 |
|
485 | 492 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Correct the way we display Normals (didn't work in case rendering was of OIT type)