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

Method removeShaderMacro

Engine/source/postFx/postEffect.cpp:1932–1946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932bool PostEffect::removeShaderMacro( const String &name )
1933{
1934 Vector<GFXShaderMacro>::iterator iter = mShaderMacros.begin();
1935 for ( ; iter != mShaderMacros.end(); iter++ )
1936 {
1937 if ( iter->name == name )
1938 {
1939 mShaderMacros.erase( iter );
1940 mUpdateShader = true;
1941 return true;
1942 }
1943 }
1944
1945 return false;
1946}
1947
1948void PostEffect::clearShaderMacros()
1949{

Callers 1

postEffect.cppFile · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected