Slightly reworked glTF samples
Parent matrices are now applied (where available) Now more in line with the base code glTF loader Refs #964
This commit is contained in:
parent
465c18862c
commit
f084d6093c
11 changed files with 71 additions and 50 deletions
|
|
@ -24,7 +24,7 @@ float4 main(VSOutput input) : SV_TARGET
|
|||
float3 N = normalize(input.Normal);
|
||||
float3 L = normalize(input.LightVec);
|
||||
float3 V = normalize(input.ViewVec);
|
||||
float3 R = reflect(-L, N);
|
||||
float3 R = reflect(L, N);
|
||||
float3 diffuse = max(dot(N, L), 0.0) * input.Color;
|
||||
float3 specular = pow(max(dot(R, V), 0.0), 16.0) * float3(0.75, 0.75, 0.75);
|
||||
return float4(diffuse * color.rgb + specular, 1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue