Suggestion: Option to set wrapping behavior
- Vorherrschende Sprache
- JavaScript
- Sterne
- 15.5k
- Forks
- 663
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## *What* is wrong?
When accessing surrounding pixel in on the y axis, which are out of bounds, it wraps to the other site of the texture, instead of failing, or similar. For example if you have a 200 x 200 texture, and want to access myTexture[200][0], you will get the value of myTexture[0][0].
At the moment, this only happens for the y axis.
## *Where* does it happen?
When accessing a value of texture on the y axis, when it is out of bounds.
## *How* do we replicate the issue?
See the explanation above.
## *How* important is this (1-5)?
2
## Expected behavior (i.e. solution)
This should be consistent for the x axis as well. Best, this is configurable.
## Other Comments
Beitragsleitfaden
Rechercherichtung
Es werden keine Dateien, Tests oder Einstiegspunkte genannt. Beginne damit, die Texturindizierung und das bestehende Verhalten bei Überschreitungen der y-Achse zu finden, und vergleiche es anschließend mit der Behandlung der x-Achse; abgeschlossen ist die Aufgabe, wenn sich beide Achsen konsistent verhalten und das Wrapping- oder Fehlerverhalten für Zugriffe außerhalb des gültigen Bereichs konfigurierbar ist und durch Tests abgedeckt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- computer-graphics
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100