forked from Dynamitos/Seele
Tangent space works again
This commit is contained in:
1 parent
f3b6ed31dc
commit
0fb5320a30
9 files changed
+27
-27
No files matched your search
@@ -14,7 +14,7 @@ struct DirectionalLight : ILightEnv
|
||||
|
||||
float3 illuminate<B:IBRDF>(LightingParameter params, B brdf)
|
||||
{
|
||||
float3 dir_WS = normalize(direction.xyz);
|
||||
float3 dir_WS = -normalize(direction.xyz);
|
||||
return brdf.evaluate(params.tangentToWorld, params.viewDir_WS, dir_WS, color.xyz);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user