MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / d3d_SetAlphaValue

Function d3d_SetAlphaValue

legacy/renderer/Direct3D.cpp:2631–2634  ·  view source on GitHub ↗

Sets the alpha value

Source from the content-addressed store, hash-verified

2629
2630// Sets the alpha value
2631void d3d_SetAlphaValue(uint8_t val) {
2632 D3D_state.cur_alpha = val;
2633 d3d_SetAlphaMultiplier();
2634}
2635
2636// Sets the overall alpha scale factor (all alpha values are scaled by this value)
2637// usefull for motion blur effect

Callers 2

d3d_SetDefaultStatesFunction · 0.85
rend_SetAlphaValueFunction · 0.85

Calls 1

d3d_SetAlphaMultiplierFunction · 0.85

Tested by

no test coverage detected