Protected_Protected Optional_Protected Optional_Protected_ReadonlybufferReadonlyisReadonlymaterialReadonlypassOptionaltargetOptionaltextureOptionaluiStatic Optional ReadonlyOldStatic ReadonlyPluginProtected_This function is called every frame before composer render, if this pass is being used in the pipeline
Optional_: IScene<ISceneEventMap>Optional_1: ICamera<ICameraEventMap>Optional_2: IRenderManager<IRenderManagerEventMap>Protected_Protected_Protected_Protected_Protected_Clear color of the depth target, i.e. the packed value of the far plane (depth = 1) for the current packing.
packDepthToRGBA(1.0) is vec4(1.0). (black with alpha 1 unpacks to ~0 with the packing in three.js since r167, which makes the background read as the near plane)packDepthToRGB(1.0) is vec3(1.0), so far is white.vec4(packDepthToRG(1.0), 0.0, 1.0) i.e. (1, 1, 0, 1), but only .rg is unpacked, so white is correct too.1.0 - depth, so far is black.Protected_Protected_Optionalprefix: stringOptionalmeta: SerializationMetaTypeOptionalmeta: SerializationMetaType
Depth Buffer Plugin
Adds a pre-render pass to render the depth buffer to a render target that can be used as gbuffer or for postprocessing.