MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SetAlphaToCoverage

Method SetAlphaToCoverage

engine/Poseidon/Graphics/Core/Engine.hpp:407–407  ·  view source on GitHub ↗

MSAA alpha-to-coverage on cutout (alpha-test) draws — grades sub-pixel cutout features (fence wire, foliage) across the MSAA samples instead of the hard per-fragment alpha test keeping or killing whole pixels. No-op on backends without MSAA.

Source from the content-addressed store, hash-verified

405 // samples instead of the hard per-fragment alpha test keeping or
406 // killing whole pixels. No-op on backends without MSAA.
407 virtual void SetAlphaToCoverage(bool /*enable*/) {}
408 virtual bool GetAlphaToCoverage() const { return false; }
409
410 // Diagnostic: replace object shading with a flat solid colour (red), keeping

Callers 3

DrawRenderTabFunction · 0.45
TriSetAlphaToCoverageFunction · 0.45

Calls

no outgoing calls

Tested by 1

TriSetAlphaToCoverageFunction · 0.36