浏览代码

Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into alpha41/guiObjectViewObjections

AzaezelX 1 年之前
父节点
当前提交
f051379720
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Templates/BaseGame/game/core/rendering/shaders/lighting.hlsl

+ 1 - 1
Templates/BaseGame/game/core/rendering/shaders/lighting.hlsl

@@ -226,7 +226,7 @@ float getDistanceAtt( float3 unormalizedLightVector , float invSqrAttRadius )
 float3 evaluateStandardBRDF(Surface surface, SurfaceToLight surfaceToLight)
 {
    //diffuse term
-   float3 Fd = float3 Fd = surface.albedo.rgb * M_1OVER_PI_F;
+   float3 Fd = surface.albedo.rgb * M_1OVER_PI_F;
     
    //GGX specular
    float3 F = F_Schlick(surface.f0, surface.f90, surfaceToLight.HdotV);