Change RenderParticleMgr for use sampler names instead of harcoded locations for allow OpenGL.

This commit is contained in:
LuisAntonRebollo 2014-11-08 01:12:59 +01:00
parent c354f59b72
commit 53ac49ee91
2 changed files with 16 additions and 4 deletions

View file

@ -110,6 +110,9 @@ protected:
GFXShaderConstHandle *mPrePassTargetParamsSC;
GFXShaderConstHandle *mAlphaFactorSC;
GFXShaderConstHandle *mAlphaScaleSC;
GFXShaderConstHandle *mSamplerDiffuse;
GFXShaderConstHandle *mSamplerPrePassTex;
GFXShaderConstHandle *mSamplerParaboloidLightMap;
} mParticleShaderConsts;
@ -118,6 +121,8 @@ protected:
GFXShaderConstBufferRef mShaderConsts;
GFXShaderConstHandle *mSystemDepth;
GFXShaderConstHandle *mScreenRect;
GFXShaderConstHandle *mSamplerColorSource;
GFXShaderConstHandle *mSamplerEdgeSource;
GFXShaderConstHandle *mEdgeTargetParamsSC;
GFXShaderConstHandle *mOffscreenTargetParamsSC;
} mParticleCompositeShaderConsts;