feat(instances): Allow two-sided rendering per renderer

Abierto
#25 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start at the renderer API and trace how mesh sidedness controls face culling and back-face lighting. Follow the renderer’s depth and shadow passes as well. Done when renderer({ sides: 'both' }) applies two-sided rendering consistently in all passes, while the default still follows each mesh’s doubleSided setting.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Face culling and back-face lighting are set by each mesh in the pool. A cutaway or inspection view can need both faces of the same meshes that the main view draws one-sided. Duplicating the pool entries for this also duplicates their geometry.

Add an opt-in renderer({ sides: 'both' }) that disables back-face culling and uses two-sided lighting. Apply the same sidedness in the renderer’s depth and shadow passes. By default, use each mesh’s doubleSided setting.

Lenguaje dominante
TypeScript
Estrellas
69
Forks
7
Merge medio
1 h 48 min
PR fusionados (30 d)
15

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de software-mansion/typegpu-kit

Todos los issues de software-mansion/typegpu-kit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.