Update HLSL skeletalanimation shaders with latest changes
This commit is contained in:
parent
7b12f89deb
commit
b6f2577174
4 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ float4 main(VSOutput input) : SV_TARGET
|
|||
float3 L = normalize(input.LightVec);
|
||||
float3 V = normalize(input.ViewVec);
|
||||
float3 R = reflect(-L, N);
|
||||
float3 diffuse = max(dot(N, L), 0.0) * float3(1.0, 1.0, 1.0);// * input.Color;
|
||||
float3 diffuse = max(dot(N, L), 0.1) * float3(1.0, 1.0, 1.0) * input.Color;
|
||||
float3 specular = pow(max(dot(R, V), 0.0), 32.0) * float3(0.5, 0.5, 0.5);
|
||||
return float4(diffuse * color.rgb + specular, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue