Commit 6ed79cdb authored by chili's avatar chili
Browse files

fix pixel shader

parent f763531d
......@@ -22,5 +22,5 @@ float4 main( float3 worldPos : Position,float3 n : Normal ) : SV_Target
// diffuse intensity
const float3 diffuse = diffuseColor * diffuseIntensity * att * max( 0.0f,dot( dirToL,n ) );
// final color
return float4(saturate( diffuse + ambient ),1.0f);
return float4(saturate( (diffuse + ambient) * materialColor ),1.0f);
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment