mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
typofix
This commit is contained in:
parent
837348d92f
commit
0bc9d8023b
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ float4 main(PFXVertToPix IN) : SV_TARGET
|
||||||
//apply brdf
|
//apply brdf
|
||||||
//Do it once to save on texture samples
|
//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, surface.NdotV, 0.0, 0.0)).xy;
|
||||||
specular *= brdf.x * F + brdf.y;
|
specular *= (brdf.x + brdf.y)* F;
|
||||||
|
|
||||||
//final diffuse color
|
//final diffuse color
|
||||||
float3 diffuse = kD * irradiance * surface.baseColor.rgb;
|
float3 diffuse = kD * irradiance * surface.baseColor.rgb;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue