|
|
|
|
|
|
bool isFrontFace; |
|
|
|
}; |
|
|
|
|
|
|
|
// FragInputs use dir vector that are normalized in the code even if not used |
|
|
|
// so we initialize them to a valid != 0 to shutdown compiler warning |
|
|
|
FragInputs InitializeFragInputs() |
|
|
|
{ |
|
|
|
FragInputs output; |
|
|
|
ZERO_INITIALIZE(FragInputs, output); |
|
|
|
|
|
|
|
// Init to some default value to make the computer quiet (else it output "divide by zero" warning even if value is not used). |
|
|
|
output.worldToTangent[0] = float3(1, 0, 0); |
|
|
|
output.worldToTangent[1] = float3(0, 1, 0); |
|
|
|
output.worldToTangent[2] = float3(0, 0, 1); |
|
|
|
|
|
|
|
return output; |
|
|
|
} |
|
|
|
|
|
|
|
void GetVaryingsDataDebug(uint paramId, FragInputs input, inout float3 result, inout bool needLinearToSRGB) |
|
|
|
{ |
|
|
|
switch (paramId) |
|
|
|