Note that #25 mentions two issues: dark surfaces and black gridlines. This addresses the dark surfaces, NOT the gridlines. I believe I understand how to fix that, too, but want to write some js tests for it.
What does this PR do?
This PR replaces existing usage of gl_FrontFacing with a cross-product workaround; gl_FrontFacing seems not to be behaving how mathbox expected.
How should this be manually tested
On this branch, npm run build
Open examples/test/surface.html. Change the mathbox line to <script type="text/javascript" src="../../build/bundle/mathbox.js"></script> to use local build
Optionally, comment out the lineX and lineY bits at end of surface.html. The affect is more proncounced without the gridlines
What are the relevant tickets? #25
Note that #25 mentions two issues: dark surfaces and black gridlines. This addresses the dark surfaces, NOT the gridlines. I believe I understand how to fix that, too, but want to write some js tests for it.
What does this PR do?
This PR replaces existing usage of
gl_FrontFacing
with a cross-product workaround;gl_FrontFacing
seems not to be behaving how mathbox expected.How should this be manually tested
npm run build
examples/test/surface.html
. Change the mathbox line to<script type="text/javascript" src="../../build/bundle/mathbox.js"></script>
to use local buildlineX
andlineY
bits at end ofsurface.html
. The affect is more proncounced without the gridlinesMaster / This branch /