Added way to set global light from game.
+ Some clean up in the mesh renderer
This commit is contained in:
@@ -27,7 +27,7 @@ Output main(uint vertexIndex : SV_VertexID)
|
||||
|
||||
float4 worldPos = mul(Model, float4(pos, 1.0f));
|
||||
output.Position = mul(ViewProjection, worldPos);
|
||||
output.Color = col;
|
||||
output.Color = col * MeshAlbedo;
|
||||
output.WorldPosition = worldPos.xyz;
|
||||
|
||||
float3 worldNormal = mul((float3x3)Model, normal);
|
||||
|
||||
Reference in New Issue
Block a user