A pixel shader for rendering a texture with the ability to weight the colors for each channel. 更多...
#include <SimpleElementShaders.h>
类 FSimpleElementColorChannelMaskPS 继承关系图:Public 成员函数 | |
| void | SetParameters (FRHICommandList &RHICmdList, const FTexture *TextureValue, const FMatrix &ColorWeightsValue, float GammaValue) |
| Sets all the constant parameters for this shader 更多... | |
Public 成员函数 继承自 FShader | |
| FShader () | |
| Used to construct a shader for deserialization. 更多... | |
| FShader (const CompiledShaderInitializerType &Initializer) | |
| Construct a shader from shader compiler output. | |
| const FSHAHash & | GetHash () const |
| Returns the hash of the shader file that this shader was compiled with. | |
| template<typename UniformBufferStructType > | |
| FORCEINLINE_DEBUGGABLE const TShaderUniformBufferParameter< UniformBufferStructType > & | GetUniformBufferParameter () const |
| Finds an automatically bound uniform buffer matching the given uniform buffer type if one exists, or returns an unbound parameter. | |
| FORCEINLINE_DEBUGGABLE const FShaderUniformBufferParameter & | GetUniformBufferParameter (const FHashedName SearchName) const |
| Finds an automatically bound uniform buffer matching the HashedName if one exists, or returns an unbound parameter. | |
| FORCEINLINE_DEBUGGABLE const FShaderUniformBufferParameter & | GetUniformBufferParameter (const FShaderParametersMetadata *SearchStruct) const |
| Finds an automatically bound uniform buffer matching the given uniform buffer struct if one exists, or returns an unbound parameter. | |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 FShader | |
| static const FShaderParametersMetadata * | GetRootParametersMetadata () |
| Returns the meta data for the root shader parameter struct. | |
| static void | ModifyCompilationEnvironment (const FShaderPermutationParameters &, FShaderCompilerEnvironment &) |
| Can be overridden by FShader subclasses to modify their compile environment just before compilation occurs. | |
| static bool | ShouldCompilePermutation (const FShaderPermutationParameters &) |
| Can be overridden by FShader subclasses to determine whether a specific permutation should be compiled. | |
| static bool | ValidateCompiledResult (EShaderPlatform InPlatform, const FShaderParameterMap &InParameterMap, TArray< FString > &OutError) |
| Can be overridden by FShader subclasses to determine whether compilation is valid. | |
Protected 成员函数 继承自 FShader | |
| LAYOUT_FIELD_EDITORONLY (FSHAHash, OutputHash) | |
| Hash of the compiled output from this shader and the resulting parameter map. 更多... | |
| LAYOUT_FIELD_EDITORONLY (FSHAHash, SourceHash) | |
| Hash of this shader's source files generated at compile time, and stored to allow creating an FShaderId. | |
| LAYOUT_FIELD_EDITORONLY (FSHAHash, VFSourceHash) | |
| Vertex factory source hash, stored so that an FShaderId can be constructed from this shader. | |
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
| void FSimpleElementColorChannelMaskPS::SetParameters | ( | FRHICommandList & | RHICmdList, |
| 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 |