Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <renderpath>
- <rendertarget name="albedo" sizedivisor="1 1" format="rgba" />
- <rendertarget name="normal" sizedivisor="1 1" format="rgba" />
- <rendertarget name="depth" sizedivisor="1 1" format="lineardepth" />
- <rendertarget name="ao" sizedivisor="1 1" format="l" />
- <command type="clear" color="1 1 1 1" output="depth" />
- <command type="clear" color="fog" depth="1.0" stencil="0" />
- <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" metadata="gbuffer">
- <output index="0" name="viewport" />
- <output index="1" name="albedo" />
- <output index="2" name="normal" />
- <output index="3" name="depth" />
- </command>
- <command type="quad" tag="SSAO" vs="SSAO" ps="SSAO" psdefines="GEN_AO" output="ao">
- <texture unit="0" name="Textures/Random.png" />
- <texture unit="1" name="depth" />
- <texture unit="2" name="normal" />
- <parameter name="Radius" value="0.2" />
- <parameter name="Bias" value="0.0" />
- <parameter name="Strength" value="2.0" />
- <parameter name="NoiseScale" value="8 8" />
- </command>
- <command type="quad" tag="SSAO" vs="SSAO" ps="SSAO" output="viewport" blend="multiply">
- <texture unit="0" name="ao" />
- </command>
- <command type="lightvolumes" vs="DeferredLight" ps="DeferredLight">
- <texture unit="albedo" name="albedo" />
- <texture unit="normal" name="normal" />
- <texture unit="depth" name="depth" />
- </command>
- <command type="scenepass" pass="postopaque" />
- <command type="scenepass" pass="refract">
- <texture unit="environment" name="viewport" />
- </command>
- <command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha">
- <texture unit="depth" name="depth" />
- </command>
- <command type="scenepass" pass="postalpha" sort="backtofront" />
- </renderpath>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement