Skip to main content

ReflectionProbe.BlendCubemap(Texture src, Texture dst, number blend, RenderTexture target)

Utility method to blend 2 cubemaps into a target render texture.

Parameters:

NameTypeDescription
srcTextureCubemap to blend from.
dstTextureCubemap to blend to.
blendnumberBlend weight.
targetRenderTextureRenderTexture which will hold the result of the blend.

Returns:

typeDescription
booleanReturns trues if cubemaps were blended, false otherwise.

Usage

---@type Texture
local src;

---@type Texture
local dst;

---@type number
local blend;

---@type RenderTexture
local target;


local val0 = ReflectionProbe:BlendCubemap(src, dst, blend, target)