Shader program helping sources to handle post processing passes.
More...
Shader program helping sources to handle post processing passes.
◆ nkPostProcessDefaultVertex()
Full vertex sources for projecting on the full screen the default post processing mesh defined in nkGraphics used in a nkGraphics::PostProcessPass. It can be directly used as a vertex shader program source, with compile time defines customizing its behaviour :
Define | Description |
NK_POST_PROCESS_DEFAULT_VERTEX_DISABLE_UV | If defined, the TEXCOORD0 attribute won't be processed nor required. Can be useful to optimize or use a custom mesh / pixel logic. |
The program will output the semantics :
Semantic (HLSL) / In variable name (GLSL) | Type | Meaning | Condition |
PIX_TEXCOORD | float2 (HLSL) / vec2 (GLSL) / nkFloat2 (Cross) | The texture coordinates on screen. | NK_POST_PROCESS_DEFAULT_VERTEX_DISABLE_UV is not defined. |
- Returns
- The source for the program described.
The documentation for this class was generated from the following file: