Refactor material shaders generator to use modular features as extensions

This commit is contained in:
Wojtek Figat
2021-02-04 14:58:01 +01:00
parent 2a3b6edf50
commit 9e6243adcc
14 changed files with 308 additions and 677 deletions

View File

@@ -167,8 +167,14 @@ struct DrawCall
struct
{
const Lightmap* Lightmap;
SkinnedMeshDrawData* Skinning;
Rectangle LightmapUVsArea;
} Features;
struct
{
const Lightmap* Lightmap;
Rectangle LightmapUVsArea;
SkinnedMeshDrawData* Skinning;
Vector3 GeometrySize; // Object geometry size in the world (unscaled).
float LODDitherFactor; // The model LOD transition dither progress.
Matrix PrevWorld;
@@ -176,15 +182,15 @@ struct DrawCall
struct
{
const Lightmap* Lightmap;
Rectangle LightmapUVsArea;
Vector4 HeightmapUVScaleBias;
Vector4 NeighborLOD;
Vector2 OffsetUV;
float CurrentLOD;
float ChunkSizeNextLOD;
float TerrainChunkSizeLOD0;
Rectangle LightmapUVsArea;
const class TerrainPatch* Patch;
const Lightmap* Lightmap;
} Terrain;
struct