|
|
|
|
|
|
#define REQUIRE_TANGENT_TO_WORLD 0 /* (defined(_HEIGHTMAP) && defined(_PER_PIXEL_DISPLACEMENT)) */ |
|
|
|
|
|
|
|
// This first set of define allow to say which attributes will be use by the mesh in the vertex and domain shader (for tesselation) |
|
|
|
#if defined(_VERTEX_WIND) |
|
|
|
#define ATTRIBUTES_NEED_NORMAL |
|
|
|
#endif |
|
|
|
|
|
|
|
#if defined(TESSELLATION_ON) || REQUIRE_TANGENT_TO_WORLD |
|
|
|
#if defined(TESSELLATION_ON) || REQUIRE_TANGENT_TO_WORLD || defined(_VERTEX_WIND) |
|
|
|
// #define ATTRIBUTES_NEED_NORMAL - When reenable, think to also enable code in VertMesh.hlsl |
|
|
|
#endif |
|
|
|
#if REQUIRE_TANGENT_TO_WORLD |
|
|
|