lovr/src/modules/graphics
bjorn 8462beef00 Fix/improve alpha cutoff;
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.
2021-12-28 21:10:52 +02:00
..
buffer.h rm persistent mapping; sync Mesh and ShaderBlock; 2020-08-17 03:29:30 -06:00
canvas.h TextureData is now named Image!; 2021-02-08 20:17:47 -07:00
font.c Move text measuring to Rasterizer 2021-10-21 10:42:11 -07:00
font.h Improve MSDF font shader; Add spread/padding settings to Font; 2021-02-10 07:08:29 -07:00
graphics.c Fix circle uvs; 2021-10-09 03:52:11 -07:00
graphics.h lovr.system; 2021-02-25 09:00:12 -07:00
material.c Fix/improve alpha cutoff; 2021-12-28 21:10:52 +02:00
material.h Clean up some includes; 2021-02-08 11:16:00 -07:00
mesh.h Autodetect integer attribute types; 2020-05-21 00:31:49 -06:00
model.c Fix Model:getTriangles; Add Lua API; 2021-03-25 12:29:11 -06:00
model.h lovrModelGetTriangles; 2021-03-25 12:29:11 -06:00
opengl.c Don't always force AMD mode to true!; 2021-10-03 15:31:29 -07:00
shader.h TextureData is now named Image!; 2021-02-08 20:17:47 -07:00
texture.h TextureData is now named Image!; 2021-02-08 20:17:47 -07:00