Add Render Layers to Camera and Render View for masking objects during rendering
This commit is contained in:
@@ -89,6 +89,7 @@ namespace FlaxEngine
|
||||
Projection = camera.Projection;
|
||||
NonJitteredProjection = Projection;
|
||||
TemporalAAJitter = Vector4.Zero;
|
||||
RenderLayersMask = camera.RenderLayersMask;
|
||||
|
||||
UpdateCachedData();
|
||||
}
|
||||
@@ -107,6 +108,7 @@ namespace FlaxEngine
|
||||
camera.GetMatrices(out View, out Projection, ref customViewport);
|
||||
NonJitteredProjection = Projection;
|
||||
TemporalAAJitter = Vector4.Zero;
|
||||
RenderLayersMask = camera.RenderLayersMask;
|
||||
|
||||
UpdateCachedData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user