Javascript – WebGPU. How to SET COLOR PER TRIANGLE, but not per vertex, and USE ONLY VERTEX BUFFER
I am trying to set color per triangle. But it is not working. Only setting color per vertex works! This is what I made: <!DOCTYPE html><title>Color Per Triangle</title><style> body{ background-color: #000 } canvas{ display: block; width: 600px; height: 400px; outline:…