Skip to content

Commit

Permalink
Adjust decal roughness
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Oct 19, 2024
1 parent 948fc23 commit 2d8c4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion effects/terrain.fx
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ float4 DecalsPS( VS_OUTPUT inV, uniform bool inShadows) : COLOR
float3 color;
// We want the decals to behave consistently with the rest of the ground
if (ShaderUsesPbrRendering()) {
color = PBR(inV, decalAlbedo.rgb, normal, 1-decalSpec.r, waterDepth);
color = PBR(inV, decalAlbedo.rgb, normal, 0.9 * (1-decalSpec.r), waterDepth);
} else {
color = CalculateLighting(normal, inV.mTexWT.xyz, decalAlbedo.xyz, decalSpec.r, waterDepth, inV.mShadow, inShadows).xyz;
}
Expand Down

0 comments on commit 2d8c4a8

Please sign in to comment.