some transparency

This commit is contained in:
Dynamitos
2024-07-17 14:34:00 +02:00
parent 12001152d4
commit 67c4ce2f7a
8 changed files with 51 additions and 9 deletions
+5
View File
@@ -49,6 +49,11 @@ struct FragmentParameter
result.normal_TS = mul(tbn, normal_WS);
return result;
}
float3x3 getTangentToWorld()
{
float3x3 tbn = float3x3(normalize(tangent_WS), normalize(biTangent_WS), normalize(normal_WS));
return transpose(tbn);
}
#endif
static FragmentParameter interpolate(FragmentParameter f0, FragmentParameter f1, FragmentParameter f2, float3 barycentricCoords)
{