mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-04 20:15:16 +00:00
matinfo.b is smoothness, and matinfo.a metalness fr the gbuffer.
This commit is contained in:
parent
ef81708e12
commit
f5bab3f574
6 changed files with 12 additions and 12 deletions
|
|
@ -256,8 +256,8 @@ void main()
|
|||
float dotHVa = clamp(dot(normal, v), 0.0, 1.0);
|
||||
float dotLHa = clamp(dot(l, h), 0.0, 1.0);
|
||||
|
||||
float roughness = matInfo.g;
|
||||
float metalness = matInfo.b;
|
||||
float roughness = 1.0001-matInfo.b;
|
||||
float metalness = matInfo.a;
|
||||
|
||||
//diffuse
|
||||
float disDiff = Fr_DisneyDiffuse(dotNVa, dotNLa, dotLHa, roughness);
|
||||
|
|
|
|||
|
|
@ -194,8 +194,8 @@ void main()
|
|||
float dotHVa = clamp(dot(normal, v), 0.0, 1.0);
|
||||
float dotLHa = clamp(dot(l, h), 0.0, 1.0);
|
||||
|
||||
float roughness = matInfo.g;
|
||||
float metalness = matInfo.b;
|
||||
float roughness = 1.0001-matInfo.b;
|
||||
float metalness = matInfo.a;
|
||||
|
||||
//diffuse
|
||||
float disDiff = Fr_DisneyDiffuse(dotNVa, dotNLa, dotLHa, roughness);
|
||||
|
|
|
|||
|
|
@ -294,8 +294,8 @@ void main()
|
|||
float dotHVa = clamp(dot(normal, v), 0.0, 1.0);
|
||||
float dotLHa = clamp(dot(l, h), 0.0, 1.0);
|
||||
|
||||
float roughness = matInfo.g;
|
||||
float metalness = matInfo.b;
|
||||
float roughness = 1.0001-matInfo.b;
|
||||
float metalness = matInfo.a;
|
||||
|
||||
//diffuse
|
||||
//float dotNL = clamp(dot(normal,l), 0.0, 1.0);
|
||||
|
|
|
|||
|
|
@ -268,8 +268,8 @@ PS_OUTPUT main(ConvexConnectP IN)
|
|||
float dotHVa = clamp(dot(normal, v), 0.0, 1.0);
|
||||
float dotLHa = clamp(dot(l, h), 0.0, 1.0);
|
||||
|
||||
float roughness = matInfo.g;
|
||||
float metalness = matInfo.b;
|
||||
float roughness = 1.0001-matInfo.b;
|
||||
float metalness = matInfo.a;
|
||||
|
||||
//diffuse
|
||||
float disDiff = Fr_DisneyDiffuse(dotNVa, dotNLa, dotLHa, roughness);
|
||||
|
|
|
|||
|
|
@ -198,8 +198,8 @@ PS_OUTPUT main( ConvexConnectP IN )
|
|||
float dotHVa = clamp(dot(normal, v), 0.0, 1.0);
|
||||
float dotLHa = clamp(dot(l, h), 0.0, 1.0);
|
||||
|
||||
float roughness = matInfo.g;
|
||||
float metalness = matInfo.b;
|
||||
float roughness = 1.0001-matInfo.b;
|
||||
float metalness = matInfo.a;
|
||||
|
||||
//diffuse
|
||||
float disDiff = Fr_DisneyDiffuse(dotNVa, dotNLa, dotLHa, roughness);
|
||||
|
|
|
|||
|
|
@ -305,8 +305,8 @@ PS_OUTPUT main(FarFrustumQuadConnectP IN)
|
|||
float dotHVa = clamp(dot(normal, v), 0.0, 1.0);
|
||||
float dotLHa = clamp(dot(l, h), 0.0, 1.0);
|
||||
|
||||
float roughness = matInfo.g;
|
||||
float metalness = matInfo.b;
|
||||
float roughness = 1.0001-matInfo.b;
|
||||
float metalness = matInfo.a;
|
||||
|
||||
//diffuse
|
||||
//float dotNL = clamp(dot(normal,l), 0.0, 1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue