VISU - PHP Game Framework

LPRenderingSystem
in package
implements SystemInterface, DevEntityPickerRenderInterface

Table of Contents

Interfaces

SystemInterface
DevEntityPickerRenderInterface

Constants

DEBUG_MODE_ALBEDO  = 5
DEBUG_MODE_DEPTH  = 4
DEBUG_MODE_NONE  = 0
Rendering debug mode
DEBUG_MODE_NORMALS  = 3
DEBUG_MODE_POSITION  = 1
DEBUG_MODE_SSAO  = 6
DEBUG_MODE_VIEW_POSITION  = 2

Properties

$debugMode  : int
$currentRenderTargetRes  : RenderTargetResource|null
The render target the renderer should render to
$devPickingShader  : ShaderProgram
$fullscreenDebugDepthRenderer  : FullscreenDebugDepthRenderer
Fullscreen Debug Depth Renderer
$fullscreenRenderer  : FullscreenTextureRenderer
Fullscreen Texture Debug Renderer
$geometryRenderers  : array<string|int, GBufferGeometryPassInterface>
Array of geometry renderers, these are beeing invoked to generate the GBuffer
$gl  : GLState
$lightingShader  : ShaderProgram
$modelCollection  : LPModelCollection
$objectShader  : ShaderProgram
Shader programs
$shaders  : ShaderCollection
$ssaoRenderer  : SSAORenderer
Screen Space Ambient Occlusion (SSAO) Renderer

Methods

__construct()  : mixed
Constructor
addGeometryRenderer()  : void
Adds a geometry renderer to the system
register()  : void
Registers the system, this is where you should register all required components.
render()  : void
Handles rendering of the scene, here you can attach additional render passes, modify the render pipeline or customize rendering related data.
renderEntityIdsForPicking()  : void
Renders all entites to a picking framebuffer
setRenderTarget()  : void
Sets the render target the renderer should render to !!! This has to be called every frame before calling render() !!!
unregister()  : void
Unregisters the system, this is where you can handle any cleanup.
update()  : void
Updates handler, this is where the game state should be updated.

Constants

Properties

Methods


        
On this page

Search results