b3dSetRadianceColor

Sets global radiance effect color tint (0.0-1.0 range, applied to bloom/glow). Takes r (red 0.0-1.0), g (green 0.0-1.0), b (blue 0.0-1.0). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

r Double
g Double
b Double

Returns

Void

Quick Summary

Sets global radiance effect color tint (0.0-1.0 range, applied to bloom/glow). Takes r (red 0.0-1.0), g (green 0.0-1.0), b (blue 0.0-1.0). Returns nothing.

Technical Exegesis...

Sets global radiance effect color tint (0.0-1.0 range, applied to bloom/glow). Takes r (red 0.0-1.0), g (green 0.0-1.0), b (blue 0.0-1.0). Returns nothing. Stores color in g_radianceColor[3] array, clamped to [0.0, 1.0] range.

This function sets radiance tint. Radiance effect: post-process bloom/glow effect applied to entire screen, brightens areas around light sources and bright surfaces, simulates camera sensor overexposure and light scatter, color tint applied to radiance contribution.

Example

Example.bam
; Enable radiance effect with warm sunset tint
b3dEnableRadianceEffect(True)
b3dSetRadianceColor(1.0, 0.75, 0.5)  ; Orange sunset glow

; Cool moonlight atmosphere
b3dEnableRadianceEffect(True)
b3dSetRadianceColor(0.7, 0.8, 1.0)  ; Blue moonlight

; Sci-fi energy portal with cyan glow
b3dEnableRadianceEffect(True)
b3dSetRadianceColor(0.3, 1.0, 1.0)  ; Bright cyan

; Neutral white bloom (default/realistic)
b3dEnableRadianceEffect(True)
b3dSetRadianceColor(1.0, 1.0, 1.0)  ; Pure white

; Dynamic time-of-day radiance color
timeOfDay! = mathMod(sysMillisecs() / 60000.0, 24.0)  ; 0-24 hours

If timeOfDay! >= 6.0 And timeOfDay! < 8.0 Then
    ; Morning - warm orange
    b3dSetRadianceColor(1.0, 0.9, 0.7)
ElseIf timeOfDay! >= 8.0 And timeOfDay! < 18.0 Then
    ; Day - neutral white
    b3dSetRadianceColor(1.0, 1.0, 1.0)
ElseIf timeOfDay! >= 18.0 And timeOfDay! < 20.0 Then
    ; Sunset - strong orange
    b3dSetRadianceColor(1.0, 0.7, 0.5)
Else
    ; Night - cool blue
    b3dSetRadianceColor(0.6, 0.7, 1.0)
EndIf