mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-15 20:53:50 +00:00
invert surface.NdotV contribution for brdf texture lookup in keeping with authoring tool outputs
This commit is contained in:
parent
6957e69d83
commit
8d2d357948
2 changed files with 2 additions and 2 deletions
|
|
@ -398,7 +398,7 @@ float4 computeForwardProbes(Surface surface,
|
|||
|
||||
//apply brdf
|
||||
//Do it once to save on texture samples
|
||||
float2 brdf = TORQUE_TEX2DLOD(BRDFTexture,float4(surface.roughness, surface.NdotV, 0.0, 0.0)).xy;
|
||||
float2 brdf = TORQUE_TEX2DLOD(BRDFTexture,float4(surface.roughness, 1.0-surface.NdotV, 0.0, 0.0)).xy;
|
||||
specular *= brdf.x * F + brdf.y;
|
||||
|
||||
//final diffuse color
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ float4 main(PFXVertToPix IN) : SV_TARGET
|
|||
|
||||
//apply brdf
|
||||
//Do it once to save on texture samples
|
||||
float2 brdf = TORQUE_TEX2DLOD(BRDFTexture, float4(surface.roughness, surface.NdotV, 0.0, 0.0)).xy;
|
||||
float2 brdf = TORQUE_TEX2DLOD(BRDFTexture, float4(surface.roughness, 1.0-surface.NdotV, 0.0, 0.0)).xy;
|
||||
specular *= brdf.x * F + brdf.y;
|
||||
|
||||
//final diffuse color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue