public void Setup(ScriptableRenderContext context, CullingResults cullingResults, ShadowSettings shadowSettings, float shadowTreshold) { this.cullingResults = cullingResults; this.shadowTreshold = shadowTreshold; buffer.BeginSample(bufferName); shadows.Setup(context, cullingResults, shadowSettings); SetupLights(); shadows.Render(); buffer.EndSample(bufferName); context.ExecuteCommandBuffer(buffer); buffer.Clear(); }
public void Setup(ScriptableRenderContext context, CullingResults cullingResults, ShadowSettings shadowSettings, bool useLightsPerObject, int renderingLayerMask) { this.cullingResults = cullingResults; buffer.BeginSample(bufferName); shadows.Setup(context, cullingResults, shadowSettings); //SetupDirectionalLight(); SetupLights(useLightsPerObject, renderingLayerMask); shadows.Render(); buffer.EndSample(bufferName); context.ExecuteCommandBuffer(buffer); buffer.Clear(); }
public void Setup(ScriptableRenderContext context, CullingResults cullingResults, ShadowSettings shadowSettings) { this._cullingResults = cullingResults; buffer.BeginSample(bufferName); // SetupDirectionalLight(); _shadows.Setup(context, cullingResults, shadowSettings); SetupLights(); _shadows.Render(); buffer.EndSample(bufferName); context.ExecuteCommandBuffer(buffer); buffer.Clear(); }
public void Setup( ScriptableRenderContext context, CullingResults culling, ShadowSettings shadowSettings ) { cullingResults = culling; buffer.BeginSample(bufferName); shadows.Setup(context, culling, shadowSettings); SetupLights(); buffer.EndSample(bufferName); context.ExecuteCommandBuffer(buffer); buffer.Clear(); }
public void Setup( ScriptableRenderContext context, CullingResults cullingResults, ShadowSettings shadowSettings, bool useLightPerObject, int camRenderingLayerMask) { this.cullingResults = cullingResults; buffer.BeginSample(buffername); //Setup shadows before setup lights shadows.Setup(context, cullingResults, shadowSettings); //get all the Lightsinfo and sent to GPU SetupLights(useLightPerObject, camRenderingLayerMask); //render shadow shadows.Render(); buffer.EndSample(buffername); context.ExecuteCommandBuffer(buffer); buffer.Clear(); }