gpujs / gpujs/gpu.js

Suggestion: Option to set wrapping behavior

Aperta
#532 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
15.5k
Fork
663
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## *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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non vengono indicati file, test o punti di ingresso. Inizia individuando l’indicizzazione delle texture e il comportamento esistente fuori dai limiti sull’asse y, quindi confrontalo con la gestione dell’asse x; il lavoro è completato quando entrambi gli assi si comportano in modo coerente e il comportamento di wrapping o di errore è configurabile e coperto per gli accessi fuori dai limiti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
computer-graphics
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.