MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SetShadow

Method SetShadow

engine/Poseidon/Graphics/Rendering/Shape/Shadow.cpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void Object::SetShadow(int level, RemmemberShadow* shadow)
151{
152 if (!_shadow)
153 {
154 _shadow = new ShadowIndex;
155 _shadow->_nShadows = 0;
156 }
157 if (!_shadow->_lods[level])
158 {
159 _shadow->_nShadows++;
160 }
161 _shadow->_lods[level] = shadow;
162}
163
164ShadowCache::ShadowCache()
165{

Callers 1

ShadowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected