Map shader base, add memory util.

This commit is contained in:
2025-03-02 17:29:00 -06:00
parent 639da129f6
commit 122997c58c
35 changed files with 511 additions and 75 deletions

View File

@ -3,6 +3,14 @@
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
uint quadGetIndiceIndex(uint vertexId) {
return vertexId % 6u;
}
uint quadGetIndiceIndex(int vertexId) {
return quadGetIndiceIndex(uint(vertexId));
}
vec2 quadGetVertice(uint indiceIndex) {
vec2 vert = vec2(0, 0);