ImageBasedLightPass

ImageBasedLightPass

ImageBasedLighting pass, used to convert IBL original texture to other maps

Constructor

new ImageBasedLightPass(shader)

Parameters:
Name Type Description
shader Shader

used for converting the skybox texture

Methods

destroy()

destroy the pass

invalidateHandles(renderer)

invalidate the material and mesh data

Parameters:
Name Type Description
renderer Renderer

render(renderer, readBuffer, writeBuffer, faceID)

Using defined shaders to render and store the texture

Parameters:
Name Type Description
renderer Renderer
readBuffer RenderTarget | Texture

the buffer to read from

writeBuffer RenderTarget | Texture

the buffer to write to

faceID Number

the id of face in cubeMap