In Structs_piece_vs_piece_ps.hlsl, The material is declared as follows:
Code: Select all
struct Material
{
...
float4 emissive; //emissive.w contains mNormalMapWeight.
float4 reserved[3];
uint4 indices0_3;
uint4 indices4_7;
@insertpiece( custom_materialBuffer )
};
Code: Select all
const size_t HlmsPbsDatablock::MaterialSizeInGpu = 64 * 4 + NUM_PBSM_TEXTURE_TYPES * 2;
Is it intentional? Or we can simply remove indices0_3 and indices4_7 in the shader's struct and adjust MaterialSizeInGpu in C++ code?
Thanks!