MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / Constants

Class Constants

src/dll/post.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 static bool resourcesCreated = false;
96
97 struct Constants
98 {
99 float logoIntensity;
100 float sharpenAmount;
101 // this must be a 4 byte type, as a regular bool can potentially break the
102 // HLSL shader logic by not initialising all of the memory.
103 BOOL sharpenEnabled;
104 float pad;
105 } constants = {
106 // Fade off the logo with time
107 (g_frameConstants.gameTime > 0.0f ? (1.f - glm::smoothstep(10.0f, 12.0f, g_frameConstants.gameTime)) : 0.0f),
108 g_settings.sharpening, g_settings.sharpeningEnabled

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected