You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The input alpha will be mapped between the min and max range when blending between the post-processed and plain image regions. This way the user can controls how steep is the transition.
142
143
[SerializeField]floatm_AlphaMin=0.0f;
@@ -151,12 +152,12 @@ public static CompositorLayer CreateStackLayer(LayerType type = CompositorLayer.
// Image and movie layers do not render any 3D objects
162
163
newLayer.m_OverrideCullingMask=true;
@@ -229,6 +230,11 @@ public void Init(string layerID = "")
229
230
230
231
// Compositor output layers (that allocate the render targets) also need a reference camera, just to get the reference pixel width/height
231
232
// Note: Movie & image layers are rendered at the output resolution (and not the movie/image resolution). This is required to have post-processing effects like film grain at full res.
233
+
if(m_Camera==null&&isImageOrVideoLayer)
234
+
{
235
+
// For image and video layers, we use a brand-new camera (to avoid sharing the same camera with other layers)
0 commit comments