Class SinglePassRenderingStrategy
Represent the first-pass rendering algorithm.
Defined in: benchgl.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SinglePassRenderingStrategy(renderer)
Creates a new SinglePassRenderingStrategy.
|
Method Attributes | Method Name and Description |
---|---|
Renders all the models registered to the Renderer.
|
|
renderModel(model)
Renders a model.
|
|
Setups camera uniforms in the current shader program.
|
|
Setups special effects uniforms in the current shader program.
|
|
Setups lights uniforms in the current shader program.
|
|
Setups texture uniforms in the current shader program.
|
Class Detail
SinglePassRenderingStrategy(renderer)
Creates a new SinglePassRenderingStrategy.
- Parameters:
- {Renderer} renderer
- A reference to the Renderer performing the algorithm.
Method Detail
renderAll()
Renders all the models registered to the Renderer.
renderModel(model)
Renders a model.
- Parameters:
- {Model} model
- The model to render.
setupCamera()
Setups camera uniforms in the current shader program.
setupEffects()
Setups special effects uniforms in the current shader program.
setupLights()
Setups lights uniforms in the current shader program.
setupTextures()
Setups texture uniforms in the current shader program.