33 Days Ago
Replace AO on shader with a single, non-directional AO but that composites properly, older shaders wont have incompatibility problems, also makes Dynamic Reflection work without ao SampleScreenSsMSAA to composite non-MSAA screen effects ( SSR, AO, etc ) into an MSAA buffer https://files.facepunch.com/sampavlovic/1b1711b1/05csVIYZJM.png Fix AO compositing for custom shaders https://files.facepunch.com/sampavlovic/1b2111b1/CRqx99maFj.png Add compiled shaders for AO including for Material shaders Composite AO to pipeline rather than blitting, cleanup AddHookAfterTranslucent > AddHookAfterDepthPrepass [Pick] Add internal Graphics.FrameAttributes, up to review Remove hack for clearing AO and use FrameAttributes instead [pick] GetBindlessRWTextureXXX if compute shader Move all ambient occlusion sampling to AmbientOcclusion.hlsl, bindless sampling RWTextureCubeArray doesnt exist, should just be a RWTexture2DArray [pick] Fog.hlsl cant be sampled from compute shaders in compute shaders that also ref lighting.fxc [pick] Fix include guards for hlsl classes, fixes declaration in both standard and material shaders, fix AO sampling Update shaders with bindless SSAO sampling Do a simple texture fetch for AmbientOcclusion::Sample, simplify SampleScreenSsMSAA Compile shaders without MSAA sampling for AO