![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SimpleElementShaders.h>
Inheritance diagram for FSimpleElementColorChannelMaskPS:Additional Inherited Members | |
Public Types inherited from FGlobalShader | |
| using | ShaderMetaType = FGlobalShaderType |
| using | FPermutationParameters = FGlobalShaderPermutationParameters |
Public Types inherited from FShader | |
| using | FPermutationDomain = FShaderPermutationNone |
| using | FPermutationParameters = FShaderPermutationParameters |
| using | CompiledShaderInitializerType = FShaderCompiledShaderInitializerType |
| using | ShaderMetaType = FShaderType |
| using | ShaderStatKeyType = FMemoryImageName |
| using | FShaderStatisticMap = TMemoryImageMap< ShaderStatKeyType, FShaderStatVariant > |
Protected Member Functions inherited from FShader | |
| LAYOUT_FIELD (TMemoryImageArray< FHashedName >, UniformBufferParameterStructs) | |
| LAYOUT_FIELD (TMemoryImageArray< FShaderUniformBufferParameter >, UniformBufferParameters) | |
| LAYOUT_FIELD_EDITORONLY (FSHAHash, OutputHash) | |
| LAYOUT_FIELD_EDITORONLY (FSHAHash, VFSourceHash) | |
| LAYOUT_FIELD_EDITORONLY (FSHAHash, SourceHash) | |
A pixel shader for rendering a texture with the ability to weight the colors for each channel. The shader also features the ability to view alpha channels and desaturate any red, green or blue channels
| FSimpleElementColorChannelMaskPS::FSimpleElementColorChannelMaskPS | ( | const ShaderMetaType::CompiledShaderInitializerType & | Initializer | ) |
|
inline |
| void FSimpleElementColorChannelMaskPS::SetParameters | ( | FRHIBatchedShaderParameters & | BatchedParameters, |
| const FTexture * | TextureValue, | ||
| const FMatrix & | ColorWeightsValue, | ||
| float | GammaValue | ||
| ) |
Sets all the constant parameters for this shader
| Texture | - 2d tile texture |
| ColorWeights | - reference value to compare with alpha for killing pixels |
| Gamma | - if gamma != 1.0 then a pow(color,Gamma) is applied |
|
static |