We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45aeeae commit f2211e1Copy full SHA for f2211e1
Assets/Chess/Shaders/Pieces.shader
@@ -171,9 +171,9 @@
171
float3 lightFinal = pow(UNITY_LIGHTMODEL_AMBIENT.xyz +
172
diffuseReflection + i.ambient_SH * 0.7, 0.8);
173
174
- col.rgb = min(((skyColor * (1.0 - _GrabPassAmount) +
+ col.rgb = clamp(((skyColor * (1.0 - _GrabPassAmount) +
175
_GrabPassAmount * grab.rgb) * col.rgb + col.rgb * (powRim) +
176
- (reflcol.rgb * reflcol.rgb * _CubeAmount) * rim) * lightFinal, 1.4);
+ (reflcol.rgb * reflcol.rgb * _CubeAmount) * rim) * lightFinal, 0.0, 1.4);
177
178
return col;
179
}
0 commit comments