Interface IGlowLayerOptions
alphaBlendingMode?: number;
blurKernelSize?: number;
camera?: Nullable<Camera>;
excludeByDefault?: boolean;
generateStencilBuffer?: boolean;
ldrMerge?: boolean;
mainTextureFixedSize?: number;
mainTextureFormat?: number;
mainTextureRatio?: number;
mainTextureSamples?: number;
mainTextureType?: number;
renderingGroupId?: number;
}
Hierarchy (View Summary)
- IThinGlowLayerOptions
- IGlowLayerOptions
Properties
Optionalalpha Blending Mode
Alpha blending mode used to apply the blur. Default depends of the implementation. Default: ALPHA_COMBINE
Optionalblur Kernel Size
How big is the kernel of the blur texture. Default: 32
Optionalcamera
The camera attached to the layer. Default: null
Optionalexclude By Default
Exclude all meshes from the glow layer by default. This is useful if you have dynamic meshes and you want to control them specifically and make sure that there are no "leaking" glowing meshes. Default: false
Optionalgenerate Stencil Buffer
Whether or not to generate a stencil buffer. Default: false
Optionalldr Merge
Forces the merge step to be done in ldr (clamp values > 1). Default: false
Optionalmain Texture Fixed Size
Enforces a fixed size texture to ensure resize independent blur. Default: undefined
Optionalmain Texture Format
The format of the main texture. Default: TEXTUREFORMAT_RGBA
Optionalmain Texture Ratio
Multiplication factor apply to the canvas size to compute the render target size used to generated the glowing objects (the smaller the faster). Default: 0.5
Optionalmain Texture Samples
Enable MSAA by choosing the number of samples. Default: 1
Optionalmain Texture Type
The type of the main texture. Default: TEXTURETYPE_UNSIGNED_BYTE
Optionalrendering Group Id
The rendering group to draw the layer in. Default: -1
Glow layer options. This helps customizing the behaviour of the glow layer.