b3dEntityAutoFade

Enables distance-based alpha fading (LOD, fog, smooth transitions). Takes entity (entity handle), nearDist (distance where fully visible), farDist (distance where fully transparent). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
nearDist Double
farDist Double

Returns

Void

Quick Summary

Enables distance-based alpha fading (LOD, fog, smooth transitions). Takes entity (entity handle), nearDist (distance where fully visible), farDist (distance where fully transparent). Returns nothing.

Technical Exegesis...

Enables distance-based alpha fading (LOD, fog, smooth transitions). Takes entity (entity handle), nearDist (distance where fully visible), farDist (distance where fully transparent). Returns nothing. Validates entity exists, sets entity.autoFadeEnabled=true, stores entity.autoFadeNear=nearDist and entity.autoFadeFar=farDist, special case: if both distances=0.0 disables auto fade (sets autoFadeEnabled=false). Automatic opacity adjustment based on camera distance.

This function enables distance-based fading.

Example

Example.bam
; No example implemented yet