2023-12-01 22:51:34 +01:00
|
|
|
#include "flywheel:api/material.glsl"
|
|
|
|
|
2023-12-01 09:23:34 +01:00
|
|
|
/*const*/ vec4 flw_vertexPos;
|
|
|
|
/*const*/ vec4 flw_vertexColor;
|
|
|
|
/*const*/ vec2 flw_vertexTexCoord;
|
|
|
|
/*const*/ ivec2 flw_vertexOverlay;
|
|
|
|
/*const*/ vec2 flw_vertexLight;
|
|
|
|
/*const*/ vec3 flw_vertexNormal;
|
2022-05-15 10:58:33 +02:00
|
|
|
|
2023-12-01 22:51:34 +01:00
|
|
|
/*const*/ FlwMaterial flw_material;
|
|
|
|
|
2023-12-04 03:13:39 +01:00
|
|
|
/*const*/ vec4 flw_sampleColor;
|
|
|
|
|
2023-12-07 07:00:31 +01:00
|
|
|
/*const*/ float flw_distance;
|
|
|
|
|
2024-01-15 23:09:19 +01:00
|
|
|
/*const*/ bool flw_vertexDiffuse;
|
|
|
|
|
|
|
|
bool flw_fragDiffuse;
|
2022-07-24 02:53:57 +02:00
|
|
|
vec4 flw_fragColor;
|
|
|
|
ivec2 flw_fragOverlay;
|
|
|
|
vec2 flw_fragLight;
|
2022-07-24 03:18:48 +02:00
|
|
|
|
2023-12-07 07:00:31 +01:00
|
|
|
// To be implemented by the material fragment shader.
|
2024-01-15 23:09:19 +01:00
|
|
|
void flw_materialFragment();
|
|
|
|
// To be implement by fog shaders.
|
2022-07-24 03:18:48 +02:00
|
|
|
vec4 flw_fogFilter(vec4 color);
|
2024-01-15 23:09:19 +01:00
|
|
|
// To be implemented by discard shaders.
|
2022-07-24 03:18:48 +02:00
|
|
|
bool flw_discardPredicate(vec4 finalColor);
|
2023-12-01 09:23:34 +01:00
|
|
|
|
|
|
|
// To be implemented by the context shader.
|
2023-12-02 08:44:04 +01:00
|
|
|
void flw_beginFragment();
|
|
|
|
void flw_endFragment();
|