BloomDownFragmentShaderVulkan

Package: Libraries.Game.Graphics.Shaders.Vulkan.Fragment · Inherits from: Libraries.Game.Graphics.Shaders.Shader, Libraries.Language.Object

BloomDownFragmentShaderVulkan makes one step down the bloom chain: an image half the size of its source, each pixel the average of the source around it (the dual filter's down step: the center four times and four diagonal neighbors). The first step, from the lit image, keeps only the light above the threshold, with a soft knee so the glow doesn't start suddenly. Its push constants (24 bytes): the source's texel size, the threshold, the knee, whether this is the first step, and a spare.

Example Code

use Libraries.Game.Graphics.Shaders.Vulkan.Fragment.BloomDownFragmentShaderVulkan

BloomDownFragmentShaderVulkan shader

Variables

  • text DEFAULT_NAME

Inherited Actions

14 actions from Libraries.Game.Graphics.Shaders.Shader
3 actions from Libraries.Language.Object