2023-12-01 22:51:34 +01:00
|
|
|
#include "flywheel:api/material.glsl"
|
2024-07-06 04:27:26 +02:00
|
|
|
#include "flywheel:api/common.glsl"
|
2023-12-01 22:51:34 +01:00
|
|
|
|
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;
|
|
|
|
|
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
|
|
|
|
2024-02-27 00:38:11 +01:00
|
|
|
sampler2D flw_diffuseTex;
|
|
|
|
sampler2D flw_overlayTex;
|
|
|
|
sampler2D flw_lightTex;
|