Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
why is the face drawn throught stencil buffer is rendered on top?

code: https://jsfiddle.net/yuqingzhijie/9wt7syn5/11/ https://jsfiddle.net/yuqingzhijie/9wt7syn5/42/

I'm implementing section drawing, but I don't know how to solve this problem

My drawing process

1、record stencil

  gl.enable(gl.STENCIL_TEST);
  gl.stencilMask(0xffff);
  gl.stencilFunc(gl.ALWAYS, 1, 0xffff);
  gl.stencilOp(gl.KEEP, gl.KEEP, gl.INCR_WRAP);
  gl.depthMask(false);
  gl.colorMask(false, false, false, false);
  // draw retangle...

2、draw section view

  gl.depthMask(true);
  gl.stencilFunc(gl.EQUAL, 1, 1);
  gl.colorMask(true, true, true, true);
  // draw retangle...

3、draw and discard retangle itself

  // draw retangle...
  // frame shader discard


  [1]: https://ibb.co/WHm6YRV
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!