mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-28 16:06:28 +01:00
a4a2d6ba13
- Add Model.boundingSphere() - Fix MaterialRenderState not setting up polygon offset correctly - Fix GlslSwitch using incorrect indentation for first and last line - Tweak how instanced crumbling works - Add CutoutShaders.ONE_TENTH - Rename Contexts.WORLD to DEFAULT - Rename Material.baseTexture() to texture - Rename Transparency.LIGHTING to LIGHTNING - Rename WriteMask.BOTH to COLOR_DEPTH - Rename SimpleModel to SingleMeshModel and add new SimpleModel that stores an arbitrary amount of meshes - Remove flywheel:flywheel/api/* files and assume appropriate symbols are automatically defined - Rename many GLSL variables, functions, and constants - Reorganize GLSL files - Add NonExtendable annotation to some API classes - Rename some Java classes, methods, fields, and variables
21 lines
561 B
GLSL
21 lines
561 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;
|
|
|
|
/*const*/ FlwMaterial flw_material;
|
|
|
|
// To be implemented by the instance shader.
|
|
void flw_transformBoundingSphere(in FlwInstance i, inout vec3 center, inout float radius);
|
|
void flw_instanceVertex(FlwInstance i);
|
|
|
|
// To be implemented by the material vertex shader.
|
|
void flw_materialVertex();
|
|
|
|
// To be implemented by the context shader.
|
|
void flw_beginVertex();
|
|
void flw_endVertex();
|