HDK
|
#include <GenOptions.h>
Public Member Functions | |
GenOptions () | |
virtual | ~GenOptions () |
Public Attributes | |
ShaderInterfaceType | shaderInterfaceType |
Sets the type of shader interface to be generated. More... | |
bool | fileTextureVerticalFlip |
string | targetColorSpaceOverride |
string | targetDistanceUnit |
bool | addUpstreamDependencies |
FilePath | libraryPrefix |
bool | emitColorTransforms |
bool | hwTransparency |
HwSpecularEnvironmentMethod | hwSpecularEnvironmentMethod |
HwDirectionalAlbedoMethod | hwDirectionalAlbedoMethod |
HwTransmissionRenderMethod | hwTransmissionRenderMethod |
bool | hwSrgbEncodeOutput |
bool | hwWriteDepthMoments |
bool | hwShadowMap |
bool | hwAmbientOcclusion |
unsigned int | hwMaxActiveLightSources |
bool | hwNormalizeUdimTexCoords |
bool | hwWriteAlbedoTable |
bool | hwWriteEnvPrefilter |
bool | hwImplicitBitangents |
Class holding options to configure shader generation.
Definition at line 75 of file GenOptions.h.
|
inline |
Definition at line 78 of file GenOptions.h.
|
inlinevirtual |
Definition at line 99 of file GenOptions.h.
bool GenOptions::addUpstreamDependencies |
Sets whether to include upstream dependencies for the element to generate a shader for.
Definition at line 126 of file GenOptions.h.
bool GenOptions::emitColorTransforms |
Enable emitting colorspace transform code if a color management system is defined. Defaults to true.
Definition at line 135 of file GenOptions.h.
bool GenOptions::fileTextureVerticalFlip |
If true the y-component of texture coordinates used for sampling file textures will be flipped before sampling. This can be used if file textures need to be flipped vertically to match the target's texture space convention. By default this option is false.
Definition at line 112 of file GenOptions.h.
bool GenOptions::hwAmbientOcclusion |
Enables ambient occlusion rendering for HW shader targets. Defaults to false.
Definition at line 170 of file GenOptions.h.
HwDirectionalAlbedoMethod GenOptions::hwDirectionalAlbedoMethod |
Sets the method to use for directional albedo evaluation for HW shader targets.
Definition at line 150 of file GenOptions.h.
bool GenOptions::hwImplicitBitangents |
Calculate fallback bitangents from existing normals and tangents inside the bitangent node.
Definition at line 193 of file GenOptions.h.
unsigned int GenOptions::hwMaxActiveLightSources |
Sets the maximum number of light sources that can be active at once.
Definition at line 174 of file GenOptions.h.
bool GenOptions::hwNormalizeUdimTexCoords |
Sets whether to transform texture coordinates to normalize uv space when UDIMs images are bound to an image. Can be enabled for when texture atlas generation is performed to compress a set of UDIMs into a single normalized image for hardware rendering.
Definition at line 181 of file GenOptions.h.
bool GenOptions::hwShadowMap |
Enables shadow mapping for HW shader targets. Defaults to false.
Definition at line 166 of file GenOptions.h.
HwSpecularEnvironmentMethod GenOptions::hwSpecularEnvironmentMethod |
Sets the method to use for specular environment lighting for HW shader targets.
Definition at line 146 of file GenOptions.h.
bool GenOptions::hwSrgbEncodeOutput |
Enables an sRGB encoding for the color output on HW shader targets. Defaults to false.
Definition at line 158 of file GenOptions.h.
HwTransmissionRenderMethod GenOptions::hwTransmissionRenderMethod |
Sets the method to use for transmission rendering for HW shader targets.
Definition at line 154 of file GenOptions.h.
bool GenOptions::hwTransparency |
Sets if transparency is needed or not for HW shaders. If a surface shader has potential of being transparent this must be set to true, otherwise no transparency code fragments will be generated for the shader and the surface will be fully opaque.
Definition at line 142 of file GenOptions.h.
bool GenOptions::hwWriteAlbedoTable |
Enables the writing of a directional albedo table. Defaults to false.
Definition at line 185 of file GenOptions.h.
bool GenOptions::hwWriteDepthMoments |
Enables the writing of depth moments for HW shader targets. Defaults to false.
Definition at line 162 of file GenOptions.h.
bool GenOptions::hwWriteEnvPrefilter |
Enables the generation of a prefiltered environment map. Defaults to false.
Definition at line 189 of file GenOptions.h.
FilePath GenOptions::libraryPrefix |
The standard library prefix, which will be applied to calls to emitLibraryInclude during code generation. Defaults to "libraries".
Definition at line 131 of file GenOptions.h.
ShaderInterfaceType GenOptions::shaderInterfaceType |
Sets the type of shader interface to be generated.
Definition at line 106 of file GenOptions.h.
string GenOptions::targetColorSpaceOverride |
An optional override for the target color space. Shader fragments will be generated to transform input values and textures into this color space.
Definition at line 117 of file GenOptions.h.
string GenOptions::targetDistanceUnit |
Define the target distance unit. Shader fragments will be generated to transform input distance values to the given unit.
Definition at line 122 of file GenOptions.h.