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

Method AsLightData

trinity/Eve/SpaceObjectFactory/EveSOFDataMgr.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109LightData EveSOFDataMgr::PointLightAttachment::AsLightData( Color& color, float scale ) const
110{
111 LightData data;
112 data.color = color;
113 data.position = this->translation;
114 data.rotation = this->rotation;
115 data.radius = this->outerScaleMultiplier * scale;
116 data.innerRadius = this->innerScaleMultiplier * scale;
117
118 data.brightness = this->intensity;
119 data.noiseAmplitude = this->noiseAmplitude;
120 data.noiseFrequency = this->noiseFrequency;
121 data.noiseOctaves = this->noiseOctaves;
122 return data;
123}
124
125EveSOFDataMgr::SpotLightAttachment::SpotLightAttachment( const EveSOFDataSpotLightAttachment& light )
126{

Callers 6

SetupSpriteSetsMethod · 0.80
SetupSpotlightSetsMethod · 0.80
SetupPlaneSetsMethod · 0.80
SetupSpriteLineSetsMethod · 0.80
SetupHazeSetsMethod · 0.80
SetupBannerSetsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected