mirror of https://github.com/bjornbytes/lovr.git
8462beef00
The current flag did not work because float shader flags are not supported. It was also not very useful because it was per-shader and did not use the alpha cutoff property of glTF materials. Instead, let's turn the shader flag into an enable/disable boolean, and add a scalar material property named "alphacutoff" that gets read by the glTF importer. When the alphaCutoff flag is enabled, the material property will be compared against the pixel's alpha value to decide whether it should get discarded. |
||
---|---|---|
.. | ||
api | ||
core | ||
lib | ||
modules | ||
resources | ||
main.c |