Shader for rendering an internal glow on objects in a scene. This shader can only be used in a WSGL renderer directly - it is not a general shader able to be used in the Workspace.
#include <Rendering/OpenGL/Shaders/wsglinnerglowshader.h>
◆ WSGLInnerGlowShader()
◆ ~WSGLInnerGlowShader()
◆ activate()
Bind the shader implementation to the target renderer.
- Parameters
-
renderer | The renderer on which we are activating the shader. |
◆ deactivate()
Deactivate the shader, unbinding it from the specified renderer.
- Parameters
-
renderer | The renderer we are targeting, i.e. rendering with |
◆ renderModel()
Use the shader to render the currently active model in the target renderer. If the render item has glyphs, glyphs will be rendered.
- Parameters
-
renderer | The renderer we are targeting, i.e. rendering with |
renderItem | The item being rendered |
glow | Whether or not the item is to be rendered as "glowing" |
◆ renderToScreen()