MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetNegative

Method SetNegative

Source/Graphics/lightprobecollection.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool LightProbeCollection::SetNegative(int id, bool negative) {
109 LightProbe* probe = GetProbeFromID(id);
110 if (probe) {
111 probe->negative = negative;
112 LightProbeUpdateEntry entry;
113 entry.id = id;
114 entry.pass = 0;
115 to_process.push(entry);
116 tet_mesh_needs_update = true;
117 return true;
118 } else {
119 return false;
120 }
121}
122
123bool LightProbeCollection::DeleteProbe(int id) {
124 for (int i = 0, len = light_probes.size(); i < len; ++i) {

Callers 1

SetScriptParamsMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected