All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenOptions Class Reference

#include <GenOptions.h>

Public Member Functions

 GenOptions ()
virtual ~GenOptions ()

Public Attributes

int shaderInterfaceType
 Sets the type of shader interface to be generated. More...
bool fileTextureVerticalFlip
string targetColorSpaceOverride
string targetDistanceUnit
bool addUpstreamDependencies
bool hwTransparency
HwSpecularEnvironmentMethod hwSpecularEnvironmentMethod
HwDirectionalAlbedoMethod hwDirectionalAlbedoMethod
bool hwWriteDepthMoments
bool hwShadowMap
bool hwAmbientOcclusion
unsigned int hwMaxActiveLightSources
bool hwNormalizeUdimTexCoords
bool hwWriteAlbedoTable
bool emitColorTransforms

Detailed Description

Class holding options to configure shader generation.

Definition at line 63 of file GenOptions.h.

Constructor & Destructor Documentation

GenOptions::GenOptions ( )

Definition at line 66 of file GenOptions.h.

virtual GenOptions::~GenOptions ( )

Definition at line 82 of file GenOptions.h.

Member Data Documentation

bool GenOptions::addUpstreamDependencies

Sets whether to include upstream dependencies for the element to generate a shader for.

Definition at line 109 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 156 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 95 of file GenOptions.h.

bool GenOptions::hwAmbientOcclusion

Enables ambient occlusion rendering for HW shader targets. Defaults to false.

Definition at line 136 of file GenOptions.h.

HwDirectionalAlbedoMethod GenOptions::hwDirectionalAlbedoMethod

Sets the method to use for directional albedo evaluation for HW shader targets.

Definition at line 124 of file GenOptions.h.

unsigned int GenOptions::hwMaxActiveLightSources

Sets the maximum number of light sources that can be active at once.

Definition at line 140 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 147 of file GenOptions.h.

bool GenOptions::hwShadowMap

Enables shadow mapping for HW shader targets. Defaults to false.

Definition at line 132 of file GenOptions.h.

HwSpecularEnvironmentMethod GenOptions::hwSpecularEnvironmentMethod

Sets the method to use for specular environment lighting for HW shader targets.

Definition at line 120 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 116 of file GenOptions.h.

bool GenOptions::hwWriteAlbedoTable

Enables the writing of a directional albedo table. Defaults to false.

Definition at line 151 of file GenOptions.h.

bool GenOptions::hwWriteDepthMoments

Enables the writing of depth moments for HW shader targets. Defaults to false.

Definition at line 128 of file GenOptions.h.

int GenOptions::shaderInterfaceType

Sets the type of shader interface to be generated.

Definition at line 89 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 100 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 105 of file GenOptions.h.

The documentation for this class was generated from the following file: