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

Method EnvironmentPainter

source/rendering/StarEnvironmentPainter.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26Vec3B const EnvironmentPainter::RayColor = Vec3B(255, 255, 200);
27
28EnvironmentPainter::EnvironmentPainter(RendererPtr renderer) {
29 m_renderer = std::move(renderer);
30 m_textureGroup = make_shared<AssetTextureGroup>(m_renderer->createTextureGroup(TextureGroupSize::Large));
31 m_timer = 0;
32 m_rayPerlin = PerlinF(1, RayPerlinFrequency, RayPerlinAmplitude, 0, 2.0f, 2.0f, Random::randu64());
33}
34
35void EnvironmentPainter::update(float dt) {
36 // Allows the rays to change alpha with time.

Callers

nothing calls this directly

Calls 2

randu64Function · 0.85
createTextureGroupMethod · 0.80

Tested by

no test coverage detected