Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

147
Vistas
three.js - Discard Transparent Fragment

I want to render an object that has transparent textures. Unfortunately, the built in alpha blending is not working correctly. I'm seeing the background color of the scene in the places where transparency is used instead of the material that is directly behind it. I tried different blending modes but that did not fix it.

Because I don't need partial transparency, fragments with an alpha value below a certain threshold should just be discarded. I know this is possible to do this in OpenGL fragment shader with the following:

if(texture.a < 0.5)
{
    discard;
}

How do I do this with Three.js?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda