MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setMonochrome

Method setMonochrome

source/base/StarCellularLighting.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void CellularLightingCalculator::setMonochrome(bool monochrome) {
54 if (monochrome == m_monochrome)
55 return;
56
57 m_monochrome = monochrome;
58 if (monochrome)
59 m_lightArray.setRight(ScalarCellularLightArray());
60 else
61 m_lightArray.setLeft(ColoredCellularLightArray());
62
63 if (m_config)
64 setParameters(m_config);
65}
66
67void CellularLightingCalculator::setParameters(Json const& config) {
68 m_config = config;

Callers 2

lightingCalcMethod · 0.80
initWorldMethod · 0.80

Calls 2

setRightMethod · 0.80
setLeftMethod · 0.80

Tested by

no test coverage detected