MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setCubemapArrayTexture

Method setCubemapArrayTexture

Engine/source/postFx/postEffect.cpp:1684–1697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1682}
1683
1684void PostEffect::setCubemapArrayTexture(U32 index, const GFXCubemapArrayHandle &cubemapArrayHandle)
1685{
1686 // Set the new texture name.
1687 mCubemapArrayTextures[index].free();
1688
1689 // Skip empty stages or ones with variable or target names.
1690 if (cubemapArrayHandle.isNull())
1691 return;
1692
1693 // Try to load the texture.
1694 mCubemapArrayTextures[index] = cubemapArrayHandle;
1695
1696 mTextureType[index] = CubemapArrayType;
1697}
1698
1699void PostEffect::setShaderConst( const String &name, const String &val )
1700{

Callers 1

renderMethod · 0.80

Calls 2

freeMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected