branchsbox/ao-on-lighting-passcancel
11 Commits over 31 Days - 0.01cph!
[Pick] Bind RenderAttributes.SetParent, this is a method to pass arguments around that doesn't involve overriding/copying, this fixes not being able to set render attributes properly in child cameras like editor viewport, needs wide testing but should be fine, also fix looking for parent attributes on the attribute chain used on the pipeline
Remove SSAOEnabled, just needs a ref if DynamicAmbientOcclusionPP is initialized
Update shaders with AO on lighting pass
Internal HookAfterDepthPrepass
Darken AO texture since we're compositing to ambient lighting properly now
[Pick] Add SceneCamera.InternalAttributes for things that should never be overriden
[Pick] Add RenderAttributes.Remove
[Pick] Child cameras in UpdateSceneCamera also gets parent camera attributes
Remove renderhook hack on AmbientOcclusion, just pass attributes directly
Handle DynamicAmbientOcclusionPP enabling/disabling for mark
WIP - change from scene to camera attribute var in AmbientOcclusiion.cs
(WIP - other bits of test left in comments while trying to get this complete, just need to determine when PP AO is enabled back to pipeline)
AO texture format changed to A8
ditto
OnRenderDepthPrepass on SceneCamera
Add AfterDepthPrepassHooks, make AO composite to lighting rather than blitting to screen