static public void mainShaderParams(string filename) { mShaderWVPHandle = mGPUShader.getEffectParam("worldViewProj"); mShaderViewHandle = mGPUShader.getEffectParam("view"); mShaderProjHandle = mGPUShader.getEffectParam("proj"); s_shaderAOPrevDepthTexHandle = mGPUShader.getEffectParam("prevDepthTexture"); }
public void mainShaderParams(string filename) { mShaderDataValsHandle = mTerrainGPUShader.getEffectParam("g_terrainVals"); mShaderPositionsTexHandle = mTerrainGPUShader.getEffectParam("positionsTexture"); mShaderWVPHandle = mTerrainGPUShader.getEffectParam("worldViewProj"); mShaderChunkScaleHandle = mTerrainGPUShader.getEffectParam("g_chunkScale"); mShaderNumWorldXVertsHandle = mTerrainGPUShader.getEffectParam("g_numWorldXVerts"); }
static public void mainShaderParams(string filename) { mShaderWVPHandle = mFoliageGPUShader.getEffectParam("worldViewProj"); mSetPositionsTexture = mFoliageGPUShader.getEffectParam("foliagePositionsTexture"); mSetUVsTexture = mFoliageGPUShader.getEffectParam("foliageUVsTexture"); mSetAlbedoTexture = mFoliageGPUShader.getEffectParam("foliageAlbedoTexture"); mSetOpacityTexture = mFoliageGPUShader.getEffectParam("foliageOpacityTexture"); mSetRCPBladeTexWidth = mFoliageGPUShader.getEffectParam("gRCPBladeImageWidth"); mTerrainQNPosTexture = mFoliageGPUShader.getEffectParam("terrainPositionsTexture"); mTerrainQNData = mFoliageGPUShader.getEffectParam("gQNData"); }
void loadShader() { mDepthPeelShader = BRenderDevice.getShaderManager().getShader(AppDomain.CurrentDomain.BaseDirectory + "\\shaders\\GPUFinalGather.fx", null); mShaderWVPHandle = mDepthPeelShader.getEffectParam("worldViewProj"); mShaderPrevDepthTexture = mDepthPeelShader.getEffectParam("prevDepthTexture"); mShaderGlobalRayDir = mDepthPeelShader.getEffectParam("globalRayDirection"); mShaderWorldPosFromCam = mDepthPeelShader.getEffectParam("worldPosFromCamTexture"); mShaderWorldToCamMatrix = mDepthPeelShader.getEffectParam("gWorldToCamera"); mShaderWorldToLightMatrix = mDepthPeelShader.getEffectParam("gWorldToLight"); mShaderIrradianceTexture = mDepthPeelShader.getEffectParam("irradianceTexture"); mShaderDepthLayerTexture = mDepthPeelShader.getEffectParam("depthLayerTexture"); }