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

156
Views
¿Por qué la cara dibujada a través del búfer de esténcil se representa en la parte superior?

código: https://jsfiddle.net/yuqingzhijie/9wt7syn5/11/ https://jsfiddle.net/yuqingzhijie/9wt7syn5/42/

Estoy implementando el dibujo de secciones, pero no sé cómo resolver este problema.

mi proceso de dibujo

1, plantilla de registro

 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, dibujar vista de sección

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

3 、 dibujar y descartar el enredo en sí mismo

 // 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!