Files
SatyandClaude Opus 5.5 597201ec6a Gx pass 1: device-free leaves, C3Vector ctors, Gx enums into Gx/Types.h
- CGxFormat(), CGxMatrixStack() + Identity, CGxLight(), CGxApiLight::operator= (moved to CGxLight.h),
  CGxPool::Invalidate/Discard, CGxGammaRamp::Set
- Gx.h/Gx.cpp: GxApiSupported, GxVertexSize, GxVertexAttribOffset, GxCalcTexelStrideInBytes + tables
- C3Vector() zero-inits and C3Vector(x, y, z) exists (inline only); CAaBox/C3Ray/CFrustum/Intersect rely on it
- EGxApi/EGxTexFormat/EGxVertexBufferFormat moved to Engine/Source/Gx/Types.h
- struct/class forward declaration mismatches fixed in CGxDevice.h and CGxPool.h

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 22:05:14 +02:00

15 lines
405 B
C++

#include <cmath>
#include <cstdint>
#include "Engine/Source/Gx/CGxGammaRamp.h"
// VERIFY: aa5b02d7 manual
// OFFSET: 0x00684070
void CGxGammaRamp::Set(float gamma) {
for (uint32_t i = 0; i < 256; i++) {
uint16_t value = static_cast<uint16_t>(pow(i * 0.0039215689f, gamma) * 65535.0f);
this->m_red[i] = value;
this->m_green[i] = value;
this->m_blue[i] = value;
}
}