MCPcopy Create free account
hub / github.com/carbonengine/trinity / AddParameterFloat

Method AddParameterFloat

trinity/Shader/Tr2Effect.cpp:504–509  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Manually adding a float parameter to this effect's list with creating it --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

502// it
503// --------------------------------------------------------------------------------
504bool Tr2Effect::AddParameterFloat( const BlueSharedString& name, float value )
505{
506 // turn float vlaue into a vector4, cause that's what we put into constant parameters
507 Vector4 vec4( value, value, value, value );
508 return AddParameterVector4( name, &vec4 );
509}
510
511// --------------------------------------------------------------------------------
512// Description:

Callers 3

SetupSpotlightSetsMethod · 0.80
CreateBoosterEffectMethod · 0.80
SetupBoosterEffectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected