Use WEBGL_provoking_vertex
and flat
shading for attributes
#248
Labels
core
Related to the Core package
good first issue
Good for newcomers
performance
WebGL
Somehow related to WebGL or GPU
Flat shading, which prevents unnecessary linear interpolation, is a performance disaster on Arm macs (see #119). However, there's a new extension that might solve the problem and allow for using flat shading: WEBGL_provoking_vertex
For instance,
"point"
mark's fragment shader has the following varyings, which are linearly interpolated between the vertices, even though they are same for all the vertices:Using flat shading would likely improve the performance a bit. Also, boolean and integer varyings can only be used with flat shading.
The text was updated successfully, but these errors were encountered: