Property | Type | Description | |
---|---|---|---|
diffuseRT | RenderTexture | ||
enableDebugBufferRender | bool | ||
lightRT | RenderTexture | ||
normalRT | RenderTexture | ||
renderLayers | int[] |
Method | Description | |
---|---|---|
DeferredLightingRenderer ( int renderOrder, int lightLayer ) : System | ||
onSceneBackBufferSizeChanged ( int newWidth, int newHeight ) : void | ||
render ( Scene scene ) : void |
we override render completely here so we can do our thing with multiple render targets
|
|
setAmbientColor ( Color color ) : DeferredLightingRenderer |
ambient lighting color. Alpha is ignored
|
|
setClearColor ( Color color ) : DeferredLightingRenderer |
clear color for the diffuse portion of the gbuffer
|
|
unload ( ) : void |
Method | Description | |
---|---|---|
debugRender ( Scene scene, Camera cam ) : void |
Method | Description | |
---|---|---|
clearRenderTargets ( ) : void | ||
renderAllBuffers ( Scene scene ) : void | ||
renderFinalCombine ( Scene scene ) : void | ||
renderLight ( AreaLight light ) : void | ||
renderLight ( DeferredLight light ) : void | ||
renderLight ( DirLight light ) : void | ||
renderLight ( PointLight light ) : void | ||
renderLight ( SpotLight light ) : void | ||
renderLights ( Scene scene ) : void | ||
renderSprites ( Scene scene ) : void |
public DeferredLightingRenderer ( int renderOrder, int lightLayer ) : System | ||
renderOrder | int | |
lightLayer | int | |
return | System |
protected debugRender ( Scene scene, Camera cam ) : void | ||
scene | Scene | |
cam | Camera | |
return | void |
public onSceneBackBufferSizeChanged ( int newWidth, int newHeight ) : void | ||
newWidth | int | |
newHeight | int | |
return | void |
public setAmbientColor ( Color color ) : DeferredLightingRenderer | ||
color | Color | Color. |
return | DeferredLightingRenderer |
public setClearColor ( Color color ) : DeferredLightingRenderer | ||
color | Color | Color. |
return | DeferredLightingRenderer |