Flywheel/docs/shader-api/vertex.glsl
Jozufozu 60b3d99a43 Frag shader go brr
- Add flw_vertexDiffuse and flw_fragDiffuse to glsl api.
- Compute/apply diffuse in the fragment shader.
- Move common glsl between instancing/indirect to common.vert/.frag.
- Add a pittance more documentation to api spec.
- Sneak in a block to build.gradle to always download sources/javadoc.
2024-01-15 14:09:19 -08:00

25 lines
637 B
GLSL

#include "flywheel:api/material.glsl"
vec4 flw_vertexPos;
vec4 flw_vertexColor;
vec2 flw_vertexTexCoord;
ivec2 flw_vertexOverlay;
vec2 flw_vertexLight;
vec3 flw_vertexNormal;
bool flw_vertexDiffuse;
/*const*/ FlwMaterial flw_material;
// To be implemented by the instance shader.
void flw_instanceVertex(FlwInstance i);
// To be implemented by the instance cull shader.
void flw_transformBoundingSphere(in FlwInstance i, inout vec3 center, inout float radius);
// To be implemented by the material vertex shader.
void flw_materialVertex();
// To be implemented by the context shader.
void flw_beginVertex();
void flw_endVertex();