232 Real mPointAttenuationCoeffs[3];
273 bool isProgrammable(
void)
const {
return mVertexProgramUsage || mFragmentProgramUsage || mGeometryProgramUsage ||
274 mTesselationHullProgramUsage || mTesselationDomainProgramUsage || mComputeProgramUsage; }
300 unsigned short getIndex(
void)
const {
return mIndex; }
413 setSelfIllumination(red, green, blue);
433 setSelfIllumination(emissive);
494 Real constant = 0.0f,
Real linear = 1.0f,
Real quadratic = 0.0f);
541 return getSelfIllumination();
619 return static_cast<unsigned short>(mTextureUnitStates.size());
947 mPolygonModeOverrideable =
override;
955 return mPolygonModeOverrideable;
990 Real expDensity = 0.001,
Real linearStart = 0.0,
Real linearEnd = 1.0 );
1566 {
return msDirtyHashList; }
1570 {
return msPassGraveyard; }
1712 MIN_GPU_PROGRAM_CHANGE
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
This utility class is used to hold the information used to generate the matrices and other informatio...
Class representing colour.
static const ColourValue White
Concrete IteratorWrapper for const access to the underlying container.
This class makes the usage of a vertex and fragment programs (low-level or high-level),...
LightTypes
Defines the type of light.
@ LT_POINT
Point light sources give off light equally in all directions, so require only position not direction.
Class defining a single pass of a Technique (of a Material), i.e.
void addTextureUnitState(TextureUnitState *state)
Adds the passed in TextureUnitState, to the existing Pass.
SceneBlendOperation mAlphaBlendOperation
ShadeOptions mShadeOptions
Shading options.
bool mPointAttenuationEnabled
SceneBlendFactor mSourceBlendFactorAlpha
float getDepthBiasConstant(void) const
Retrieves the const depth bias value as set by setDepthBias.
void setName(const String &name)
SceneBlendFactor getSourceBlendFactorAlpha() const
Retrieves the alpha source blending factor for the material (as set using Materiall::setSeparateScene...
GpuProgramUsage * mTesselationHullProgramUsage
Tesselation hull program details.
GpuProgramParametersSharedPtr getTesselationDomainProgramParameters(void) const
Gets the Tesselation Domain program parameters used by this pass.
SceneBlendFactor mSourceBlendFactor
const String & getComputeProgramName(void) const
Gets the name of the Tesselation Hull program used by this pass.
bool getRunOnlyForOneLightType(void) const
Does this pass run only for a single light type (if getIteratePerLight is true).
bool getLightClipPlanesEnabled() const
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the l...
const String & getFragmentProgramName(void) const
Gets the name of the fragment program used by this pass.
void setPointAttenuation(bool enabled, Real constant=0.0f, Real linear=1.0f, Real quadratic=0.0f)
Sets how points are attenuated with distance.
void setLightCountPerIteration(unsigned short c)
If light iteration is enabled, determine the number of lights per iteration.
SceneBlendOperation getSceneBlendingOperation() const
Returns the current blending operation.
OGRE_STATIC_MUTEX(msDirtyHashListMutex)
TextureUnitState * createTextureUnitState(const String &textureName, unsigned short texCoordSet=0)
Inserts a new TextureUnitState object into the Pass.
GpuProgramParametersSharedPtr getTesselationHullProgramParameters(void) const
Gets the Tesselation Hull program parameters used by this pass.
const GpuProgramPtr & getTesselationHullProgram(void) const
Gets the Tesselation Hull program used by this pass, only available after _load().
uint32 mHash
Optional name for the pass.
GpuProgramParametersSharedPtr getShadowReceiverFragmentProgramParameters(void) const
Gets the fragment program parameters used by this pass when rendering shadow receivers.
bool mLightScissoring
Scissoring for the light?
const ColourValue & getAmbient(void) const
Gets the ambient colour reflectance of the pass.
FogMode getFogMode(void) const
Returns the fog mode for this pass.
Light::LightTypes mOnlyLightType
bool mLightClipPlanes
User clip planes for light?
ConstTextureUnitStateIterator getTextureUnitStateIterator(void) const
Get an iterator over the TextureUnitStates contained in this Pass.
virtual bool getPolygonModeOverrideable(void) const
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setti...
SceneBlendOperation getSceneBlendingOperationAlpha() const
Returns the current alpha blending operation.
GpuProgramUsage * mComputeProgramUsage
Compute program details.
BuiltinHashFunction
There are some default hash functions used to order passes so that render state changes are minimised...
@ MIN_TEXTURE_CHANGE
Try to minimise the number of texture changes.
Real getFogEnd(void) const
Returns the fog end distance for this pass.
TextureUnitStates mTextureUnitStates
const ColourValue & getSelfIllumination(void) const
Gets the self illumination colour of the pass.
void setLightClipPlanesEnabled(bool enabled)
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the l...
unsigned char mAlphaRejectVal
const String & getResourceGroup(void) const
Gets the resource group of the ultimate parent Material.
vector< TextureUnitState * >::type TextureUnitStates
Storage of texture unit states.
float getDepthBiasSlopeScale(void) const
Retrieves the slope-scale depth bias value as set by setDepthBias.
bool applyTextureAliases(const AliasTextureNamePairList &aliasList, const bool apply=true) const
Applies texture names to Texture Unit State with matching texture name aliases.
void setLightScissoringEnabled(bool enabled)
Sets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are...
bool getLightScissoringEnabled() const
Gets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are...
size_t mPassIterationCount
Number of pass iterations to perform.
void setPassIterationCount(const size_t count)
set the number of iterations that this pass should perform when doing fast multi pass operation.
float mDepthBiasPerIteration
Pass(Technique *parent, unsigned short index, const Pass &oth)
Copy constructor.
void setPointSize(Real ps)
Sets the point size of this pass.
void setTransparentSortingEnabled(bool enabled)
Sets whether or not transparent sorting is enabled.
const UserObjectBindings & getUserObjectBindings() const
Return an instance of user objects binding associated with this class.
void setFragmentProgram(const String &name, bool resetParams=true)
Sets the details of the fragment program to use.
void setVertexColourTracking(TrackVertexColourType tracking)
Sets which material properties follow the vertex colour.
void setIlluminationStage(IlluminationStage is)
Manually set which illumination stage this pass is a member of.
void setFog(bool overrideScene, FogMode mode=FOG_NONE, const ColourValue &colour=ColourValue::White, Real expDensity=0.001, Real linearStart=0.0, Real linearEnd=1.0)
Sets the fogging mode applied to this pass.
set< Pass * >::type PassSet
GpuProgramUsage * mVertexProgramUsage
Vertex program details.
bool isLoaded(void) const
Is this loaded?
void _recalculateHash(void)
Internal method for recalculating the hash.
TrackVertexColourType getVertexColourTracking(void) const
Gets which material properties follow the vertex colour.
Light::LightTypes getOnlyLightType() const
Gets the single light type this pass runs for if getIteratePerLight and getRunOnlyForOneLightType are...
bool hasTesselationHullProgram(void) const
Returns true if this pass uses a programmable tesselation control pipeline.
void setTextureAnisotropy(unsigned int maxAniso)
Sets the anisotropy level to be used for all textures.
static PassSet msPassGraveyard
The place where passes go to die.
bool getFogOverride(void) const
Returns true if this pass is to override the scene fog settings.
void setManualCullingMode(ManualCullingMode mode)
Sets the manual culling mode, performed by CPU rather than hardware.
bool mNormaliseNormals
Normalisation.
unsigned short mMaxSimultaneousLights
Max simultaneous lights.
void setColourWriteEnabled(bool enabled)
Sets whether or not colour buffer writing is enabled for this Pass.
void setTesselationDomainProgram(const String &name, bool resetParams=true)
Sets the details of the tesselation domain program to use.
const GpuProgramPtr & getTesselationDomainProgram(void) const
Gets the Tesselation Domain program used by this pass, only available after _load().
void _dirtyHash(void)
Mark the hash as dirty.
unsigned short getLightCountPerIteration(void) const
If light iteration is enabled, determine the number of lights per iteration.
void setPointMaxSize(Real max)
Set the maximum point size, when point attenuation is in use.
const GpuProgramPtr & getShadowCasterVertexProgram(void) const
Gets the vertex program used by this pass when rendering shadow casters, only available after _load()...
PolygonMode getPolygonMode(void) const
Returns the type of light shading to be used.
GpuProgramParametersSharedPtr getGeometryProgramParameters(void) const
Gets the geometry program parameters used by this pass.
Real getPointAttenuationQuadratic(void) const
Returns the quadratic coefficient of point attenuation.
bool isProgrammable(void) const
Returns true if this pass is programmable i.e. includes either a vertex or fragment program.
bool getTransparentSortingEnabled(void) const
Returns whether or not transparent sorting is enabled.
const String & getShadowCasterFragmentProgramName(void) const
Gets the name of the fragment program used by this pass when rendering shadow casters.
Pass & operator=(const Pass &oth)
Operator = overload.
void setShadowCasterFragmentProgramParameters(GpuProgramParametersSharedPtr params)
Sets the fragment program parameters for rendering as a shadow caster.
void setSelfIllumination(const ColourValue &selfIllum)
Sets the amount of self-illumination an object has.
TrackVertexColourType mTracking
void setAlphaRejectFunction(CompareFunction func)
Sets the alpha reject function.
bool hasShadowCasterVertexProgram(void) const
Returns true if this pass uses a shadow caster vertex program.
void setSelfIllumination(Real red, Real green, Real blue)
Sets the amount of self-illumination an object has.
bool getColourWriteEnabled(void) const
Determines if colour buffer writing is enabled for this pass.
GpuProgramUsage * mShadowCasterFragmentProgramUsage
Fragment program details.
unsigned short getStartLight(void) const
Gets the light index that this pass will start at in the light list.
ShadeOptions getShadingMode(void) const
Returns the type of light shading to be used.
ColourValue mAmbient
Needs to be dirtied when next loaded.
void _unload(void)
Internal method for unloading this pass.
void setShadowCasterVertexProgramParameters(GpuProgramParametersSharedPtr params)
Sets the vertex program parameters for rendering as a shadow caster.
const String & getTesselationDomainProgramName(void) const
Gets the name of the Domain Evaluation program used by this pass.
void setTextureFiltering(TextureFilterOptions filterType)
Set texture filtering for every texture unit.
UserObjectBindings mUserObjectBindings
User objects binding.
static HashFunc * msHashFunc
The Pass hash functor.
void setAmbient(Real red, Real green, Real blue)
Sets the ambient colour reflectance properties of this pass.
bool getIteratePerLight(void) const
Does this pass run once for every light in range?
uint32 getHash(void) const
Gets the 'hash' of this pass, ie a precomputed number to use for sorting.
unsigned short getTextureUnitStateIndex(const TextureUnitState *state) const
Retrieve the index of the Texture Unit State in the pass.
void setPolygonMode(PolygonMode mode)
Sets the type of polygon rendering required.
bool hasVertexProgram(void) const
Returns true if this pass uses a programmable vertex pipeline.
const GpuProgramPtr & getShadowReceiverVertexProgram(void) const
Gets the vertex program used by this pass when rendering shadow receivers, only available after _load...
void setLightingEnabled(bool enabled)
Sets whether or not dynamic lighting is enabled.
bool getDepthCheckEnabled(void) const
Returns whether or not this pass renders with depth-buffer checking on or not.
void removeTextureUnitState(unsigned short index)
Removes the indexed texture unit state from this pass.
void setSpecular(const ColourValue &specular)
Sets the specular colour reflectance properties of this pass.
bool mPolygonModeOverrideable
const GpuProgramPtr & getVertexProgram(void) const
Gets the vertex program used by this pass, only available after _load().
void setDiffuse(const ColourValue &diffuse)
Sets the diffuse colour reflectance properties of this pass.
static void setHashFunction(BuiltinHashFunction builtin)
Sets one of the default hash functions to be used.
const GpuProgramPtr & getShadowReceiverFragmentProgram(void) const
Gets the fragment program used by this pass when rendering shadow receivers, only available after _lo...
void setSceneBlending(const SceneBlendFactor sourceFactor, const SceneBlendFactor destFactor)
Allows very fine control of blending this Pass with the existing contents of the scene.
bool mRunOnlyForOneLightType
Should it only be run for a certain light type?
void setShadowCasterVertexProgram(const String &name)
Sets the details of the vertex program to use when rendering as a shadow caster.
ContentTypeLookup mShadowContentTypeLookup
void _notifyNeedsRecompile(void)
Tells the pass that it needs recompilation.
UserObjectBindings & getUserObjectBindings()
Return an instance of user objects binding associated with this class.
void setAlphaRejectValue(unsigned char val)
Gets the alpha reject value.
bool mTransparentSorting
Transparent depth sorting.
void setPointMinSize(Real min)
Set the minimum point size, when point attenuation is in use.
const String & getShadowReceiverFragmentProgramName(void) const
Gets the name of the fragment program used by this pass when rendering shadow receivers.
bool hasGeometryProgram(void) const
Returns true if this pass uses a programmable geometry pipeline.
size_t calculateSize(void) const
bool hasShadowReceiverVertexProgram(void) const
Returns true if this pass uses a shadow receiver vertex program.
IlluminationStage getIlluminationStage() const
Get the manually assigned illumination stage, if any.
Real getFogStart(void) const
Returns the fog start distance for this pass.
IlluminationStage mIlluminationStage
Illumination stage?
float mDepthBiasSlopeScale
static PassSet msDirtyHashList
List of Passes whose hashes need recalculating.
bool mColourWrite
Colour buffer settings.
void setTesselationDomainProgramParameters(GpuProgramParametersSharedPtr params)
Sets the Tesselation Domain program parameters.
Pass(Technique *parent, unsigned short index)
Default constructor.
TextureUnitState * getTextureUnitState(unsigned short index)
Retrieves a pointer to a texture unit state so it may be modified.
const ColourValue & getDiffuse(void) const
Gets the diffuse colour reflectance of the pass.
void setShininess(Real val)
Sets the shininess of the pass, affecting the size of specular highlights.
GpuProgramParametersSharedPtr getShadowReceiverVertexProgramParameters(void) const
Gets the vertex program parameters used by this pass when rendering shadow receivers.
unsigned char getAlphaRejectValue(void) const
Gets the alpha reject value.
unsigned short mLightsPerIteration
Iterate per how many lights?
bool getNormaliseNormals(void) const
Returns true if this pass has auto-normalisation of normals set.
bool isTransparent(void) const
Returns true if this pass has some element of transparency.
bool hasFragmentProgram(void) const
Returns true if this pass uses a programmable fragment pipeline.
void setTesselationHullProgram(const String &name, bool resetParams=true)
Support for shader model 5.0, hull and domain shaders.
void removeAllTextureUnitStates(void)
Removes all texture unit settings.
void setShadowReceiverFragmentProgramParameters(GpuProgramParametersSharedPtr params)
Sets the fragment program parameters for rendering as a shadow receiver.
GpuProgramParametersSharedPtr getComputeProgramParameters(void) const
Gets the Tesselation Hull program parameters used by this pass.
GpuProgramParametersSharedPtr getFragmentProgramParameters(void) const
Gets the fragment program parameters used by this pass.
void setCullingMode(CullingMode mode)
Sets the culling mode for this pass based on the 'vertex winding'.
CompareFunction mDepthFunc
TextureUnitState * getTextureUnitState(const String &name)
Retrieves the Texture Unit State matching name.
void setStartLight(unsigned short startLight)
Sets the light index that this pass will start at in the light list.
void setShadowReceiverVertexProgram(const String &name)
Sets the details of the vertex program to use when rendering as a shadow receiver.
void setSpecular(Real red, Real green, Real blue, Real alpha)
Sets the specular colour reflectance properties of this pass.
GpuProgramUsage * mShadowReceiverVertexProgramUsage
Vertex program details.
bool hasSeparateSceneBlendingOperations() const
Returns true if this pass uses separate scene blending operations.
Real getPointMinSize(void) const
Get the minimum point size, when point attenuation is in use.
static const PassSet & getDirtyHashList(void)
Static method to retrieve all the Passes which need their hash values recalculated.
SceneBlendFactor getDestBlendFactor() const
Retrieves the destination blending factor for the material (as set using Materiall::setSceneBlending)...
unsigned short _getTextureUnitWithContentTypeIndex(TextureUnitState::ContentType contentType, unsigned short index) const
Gets the 'nth' texture which references the given content type.
uint32 getLightMask() const
Gets the light mask controlling which lights are used for this pass.
bool isAmbientOnly(void) const
Returns whether this pass is ambient only.
TextureUnitState * createTextureUnitState(void)
Inserts a new TextureUnitState object into the Pass.
void _unprepare(void)
Internal method for undoing the load preparartion for this pass.
const GpuProgramPtr & getComputeProgram(void) const
Gets the Tesselation EHull program used by this pass, only available after _load().
SceneBlendFactor mDestBlendFactorAlpha
unsigned short mStartLight
Starting light index.
void setMaxSimultaneousLights(unsigned short maxLights)
Sets the maximum number of lights to be used by this pass.
void setPointSpritesEnabled(bool enabled)
Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) o...
bool getTransparentSortingForced(void) const
Returns whether or not transparent sorting is forced.
void setComputeProgram(const String &name, bool resetParams=true)
Sets the details of the compute program to use.
static void processPendingPassUpdates(void)
Process all dirty and pending deletion passes.
ConstVectorIterator< TextureUnitStates > ConstTextureUnitStateIterator
void setSceneBlendingOperation(SceneBlendOperation op)
Sets the specific operation used to blend source and destination pixels together.
bool mAlphaToCoverageEnabled
void setLightMask(uint32 mask)
Sets the light mask which can be matched to specific light flags to be handled by this pass.
void setAlphaRejectSettings(CompareFunction func, unsigned char value, bool alphaToCoverageEnabled=false)
Sets the way the pass will have use alpha to totally reject pixels from the pipeline.
void setTesselationHullProgramParameters(GpuProgramParametersSharedPtr params)
Sets the Tesselation Hull program parameters.
SceneBlendFactor mDestBlendFactor
void setEmissive(Real red, Real green, Real blue)
Sets the amount of self-illumination an object has.
uint32 mLightMask
With a specific light mask?
void setDepthBias(float constantBias, float slopeScaleBias=0.0f)
Sets the depth bias to be used for this material.
void _getBlendFlags(SceneBlendType type, SceneBlendFactor &source, SceneBlendFactor &dest)
Used to get scene blending flags from a blending type.
void setSeparateSceneBlending(const SceneBlendFactor sourceFactor, const SceneBlendFactor destFactor, const SceneBlendFactor sourceFactorAlpha, const SceneBlendFactor destFactorAlpha)
Allows very fine control of blending this Pass with the existing contents of the scene.
CompareFunction mAlphaRejectFunc
SceneBlendFactor getDestBlendFactorAlpha() const
Retrieves the alpha destination blending factor for the material (as set using Materiall::setSeparate...
bool mTransparentSortingForced
Transparent depth sorting forced.
bool mQueuedForDeletion
Is this pass queued for deletion?
Technique * getParent(void) const
Gets the parent Technique.
GpuProgramParametersSharedPtr getShadowCasterVertexProgramParameters(void) const
Gets the vertex program parameters used by this pass when rendering shadow casters.
void setDepthWriteEnabled(bool enabled)
Sets whether or not this pass renders with depth-buffer writing on or not.
void setShadowCasterFragmentProgram(const String &name)
Sets the details of the fragment program to use when rendering as a shadow caster.
void setShadowReceiverVertexProgramParameters(GpuProgramParametersSharedPtr params)
Sets the vertex program parameters for rendering as a shadow receiver.
const TextureUnitState * getTextureUnitState(const String &name) const
Retrieves the Texture Unit State matching name.
bool hasSeparateSceneBlending() const
Return true if this pass uses separate scene blending.
OGRE_STATIC_MUTEX(msPassGraveyardMutex)
bool getDepthWriteEnabled(void) const
Returns whether or not this pass renders with depth-buffer writing on or not.
OGRE_MUTEX(mGpuProgramChangeMutex)
Pass * _split(unsigned short numUnits)
Splits this Pass to one which can be handled in the number of texture units specified.
Real getPointAttenuationConstant(void) const
Returns the constant coefficient of point attenuation.
bool mHashDirtyQueued
Pass hash.
const String & getName(void) const
Get the name of the pass.
void _prepare(void)
Internal method for preparing to load this pass.
void setVertexProgram(const String &name, bool resetParams=true)
Sets the details of the vertex program to use.
Real getPointSize(void) const
Gets the point size of the pass.
const ColourValue & getEmissive(void) const
Gets the self illumination colour of the pass.
bool getLightingEnabled(void) const
Returns whether or not dynamic lighting is enabled.
bool mPointSpritesEnabled
unsigned short getMaxSimultaneousLights(void) const
Gets the maximum number of lights to be used by this pass.
void setAmbient(const ColourValue &ambient)
Sets the ambient colour reflectance properties of this pass.
GpuProgramParametersSharedPtr getVertexProgramParameters(void) const
Gets the vertex program parameters used by this pass.
GpuProgramUsage * mGeometryProgramUsage
Geometry program details.
bool mContentTypeLookupBuilt
TextureUnitStateIterator getTextureUnitStateIterator(void)
Get an iterator over the TextureUnitStates contained in this Pass.
void _load(void)
Internal method for loading this pass.
const GpuProgramPtr & getGeometryProgram(void) const
Gets the geometry program used by this pass, only available after _load().
GpuProgramParametersSharedPtr getShadowCasterFragmentProgramParameters(void) const
Gets the fragment program parameters used by this pass when rendering shadow casters.
static const PassSet & getPassGraveyard(void)
Static method to retrieve all the Passes which are pending deletion.
VectorIterator< TextureUnitStates > TextureUnitStateIterator
bool mSeparateBlendOperation
Determines if we should use separate blending operations for color and alpha channels.
void setIterationDepthBias(float biasPerIteration)
Sets a factor which derives an additional depth bias from the number of times a pass is iterated.
GpuProgramUsage * mFragmentProgramUsage
Fragment program details.
ManualCullingMode getManualCullingMode(void) const
Retrieves the manual culling mode for this pass.
void setSeparateSceneBlendingOperation(SceneBlendOperation op, SceneBlendOperation alphaOp)
Sets the specific operation used to blend source and destination pixels together.
void setNormaliseNormals(bool normalise)
If set to true, this forces normals to be normalised dynamically by the hardware for this pass.
Real mPointSize
Point size, applies when not using per-vertex point size.
vector< unsignedshort >::type ContentTypeLookup
const TextureUnitState * getTextureUnitState(unsigned short index) const
Retrieves a const pointer to a texture unit state.
const GpuProgramPtr & getFragmentProgram(void) const
Gets the fragment program used by this pass, only available after _load().
void _updateAutoParams(const AutoParamDataSource *source, uint16 variabilityMask) const
Update automatic parameters.
bool hasComputeProgram(void) const
Returns true if this pass uses a programmable compute pipeline.
const String & getGeometryProgramName(void) const
Gets the name of the geometry program used by this pass.
const String & getVertexProgramName(void) const
Gets the name of the vertex program used by this pass.
PolygonMode mPolygonMode
Polygon mode.
ManualCullingMode mManualCullMode
size_t getPassIterationCount(void) const
Gets the pass iteration count value.
void setComputeProgramParameters(GpuProgramParametersSharedPtr params)
Sets the Tesselation Evaluation program parameters.
bool isAlphaToCoverageEnabled() const
Gets whether to use alpha to coverage (A2C) when blending alpha rejected values.
Real getPointAttenuationLinear(void) const
Returns the linear coefficient of point attenuation.
bool hasShadowReceiverFragmentProgram(void) const
Returns true if this pass uses a shadow receiver fragment program.
const ColourValue & getSpecular(void) const
Gets the specular colour reflectance of the pass.
static HashFunc * getHashFunction(void)
Get the hash function used for all passes.
void setTransparentSortingForced(bool enabled)
Sets whether or not transparent sorting is forced.
float getIterationDepthBias() const
Gets a factor which derives an additional depth bias from the number of times a pass is iterated.
void setShadingMode(ShadeOptions mode)
Sets the type of light shading required.
GpuProgramUsage * mShadowReceiverFragmentProgramUsage
Fragment program details.
Real getFogDensity(void) const
Returns the fog density for this pass.
void setAlphaToCoverageEnabled(bool enabled)
Sets whether to use alpha to coverage (A2C) when blending alpha rejected values.
GpuProgramUsage * mTesselationDomainProgramUsage
Tesselation domain program details.
CompareFunction getAlphaRejectFunction(void) const
Gets the alpha reject function.
const GpuProgramPtr & getShadowCasterFragmentProgram(void) const
Gets the fragment program used by this pass when rendering shadow casters, only available after _load...
void setSceneBlending(const SceneBlendType sbt)
Sets the kind of blending this pass has with the existing contents of the scene.
bool hasShadowCasterFragmentProgram(void) const
Returns true if this pass uses a shadow caster fragment program.
void setDiffuse(Real red, Real green, Real blue, Real alpha)
Sets the diffuse colour reflectance properties of this pass.
bool hasTesselationDomainProgram(void) const
Returns true if this pass uses a programmable tesselation control pipeline.
void setDepthCheckEnabled(bool enabled)
Sets whether or not this pass renders with depth-buffer checking on or not.
virtual void setPolygonModeOverrideable(bool override)
Sets whether this pass's chosen detail level can be overridden (downgraded) by the camera setting.
void setEmissive(const ColourValue &emissive)
Sets the amount of self-illumination an object has.
GpuProgramUsage * mShadowCasterVertexProgramUsage
Vertex program details.
void setFragmentProgramParameters(GpuProgramParametersSharedPtr params)
Sets the fragment program parameters.
unsigned short getNumTextureUnitStates(void) const
Returns the number of texture unit settings.
Real getPointMaxSize(void) const
Get the maximum point size, when point attenuation is in use.
void queueForDeletion(void)
Queue this pass for deletion when appropriate.
SceneBlendFactor getSourceBlendFactor() const
Retrieves the source blending factor for the material (as set using Materiall::setSceneBlending).
const ColourValue & getFogColour(void) const
Returns the fog colour for the scene.
void setIteratePerLight(bool enabled, bool onlyForOneLightType=true, Light::LightTypes lightType=Light::LT_POINT)
Sets whether or not this pass should iterate per light or number of lights which can affect the objec...
CompareFunction getDepthFunction(void) const
Returns the function used to compare depth values when depth checking is on.
CullingMode getCullingMode(void) const
Returns the culling mode for geometry rendered with this pass.
void setDepthFunction(CompareFunction func)
Sets the function used to compare depth values when depth checking is on.
void setSeparateSceneBlending(const SceneBlendType sbt, const SceneBlendType sbta)
Sets the kind of blending this pass has with the existing contents of the scene, separately for color...
bool mIteratePerLight
Run this pass once per light?
const String & getShadowReceiverVertexProgramName(void) const
Gets the name of the vertex program used by this pass when rendering shadow receivers.
Real getShininess(void) const
Gets the 'shininess' property of the pass (affects specular highlights).
static void clearDirtyHashList(void)
Static method to reset the list of passes which need their hash values recalculated.
const String & getTesselationHullProgramName(void) const
Gets the name of the Tesselation Hull program used by this pass.
OGRE_MUTEX(mTexUnitChangeMutex)
const String & getShadowCasterVertexProgramName(void) const
Gets the name of the vertex program used by this pass when rendering shadow casters.
bool isPointAttenuationEnabled(void) const
Returns whether points are attenuated with distance.
void setShadowReceiverFragmentProgram(const String &name)
This method allows you to specify a fragment program for use when rendering a texture shadow receiver...
void setGeometryProgram(const String &name, bool resetParams=true)
Sets the details of the geometry program to use.
bool getPointSpritesEnabled(void) const
Returns whether point sprites are enabled when rendering a point list.
static HashFunc * getBuiltinHashFunction(BuiltinHashFunction builtin)
Get the builtin hash function.
bool mLightingEnabled
Lighting enabled?
void _notifyIndex(unsigned short index)
Internal method to adjust pass index.
SceneBlendOperation mBlendOperation
unsigned short getIndex(void) const
Gets the index of this Pass in the parent Technique.
void setVertexProgramParameters(GpuProgramParametersSharedPtr params)
Sets the vertex program parameters.
void setGeometryProgramParameters(GpuProgramParametersSharedPtr params)
Sets the geometry program parameters.
static void setHashFunction(HashFunc *hashFunc)
Set the hash function used for all passes.
Class representing an approach to rendering this particular Material.
Class representing the state of a single texture unit during a Pass of a Technique,...
ContentType
Enum identifying the type of content this texture unit contains.
Class that provides convenient interface to establish a linkage between custom user application objec...
Concrete IteratorWrapper for nonconst access to the underlying container.
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
ManualCullingMode
Manual culling modes based on vertex normals.
TextureFilterOptions
High-level filtering options providing shortcuts to settings the minification, magnification and mip ...
map< String, String >::type AliasTextureNamePairList
Alias / Texture name pair (first = alias, second = texture name)
PolygonMode
The polygon mode to use when rasterising.
ShadeOptions
Light shading modes.
CullingMode
Hardware culling modes based on vertex winding.
int TrackVertexColourType
An enumeration describing which material properties should track the vertex colours.
IlluminationStage
Categorisation of passes for the purpose of additive lighting.
SceneBlendFactor
Blending factors for manually blending objects with the scene.
vector< IlluminationPass * >::type IlluminationPassList
SceneBlendOperation
Blending operations controls how objects are blended into the scene.
SceneBlendType
Types of blending that you can specify between an object and the existing contents of the scene.
@ IS_PER_LIGHT
Part of the rendering which occurs per light.
@ IS_DECAL
Post-lighting rendering.
@ IS_UNKNOWN
Not determined.
@ IS_AMBIENT
Part of the rendering which occurs without any kind of direct lighting.
float Real
Software floating point type.
Struct recording a pass which can be used for a specific illumination stage.
Pass * originalPass
The original pass which spawned this one.
Pass * pass
The pass to use in this stage.
bool destroyOnShutdown
Whether this pass is one which should be deleted itself.
Definition of a functor for calculating the hashcode of a Pass.
virtual ~HashFunc()
Need virtual destructor in case subclasses use it.
virtual uint32 operator()(const Pass *p) const =0