Appearance
composer.enableFocusPass(dofEnabled, dofFocus, dofAperture, dofMaxblur)
是否开启景深模糊
Kind: instance method of Composer
Param | Type | Description |
---|---|---|
dofEnabled | boolean | 景深开关 |
dofFocus | number | 景深焦距 |
dofAperture | number | 景深孔径 |
dofMaxblur | number | 景深最大模糊程度 |
composer.setFocusEnabled(dofEnabled)
设置是否开启景深
Kind: instance method of Composer
Param | Type | Description |
---|---|---|
dofEnabled | boolean | 景深开关 |
composer.setDofFocus(dofFocus)
设置景深孔径
Kind: instance method of Composer
Param | Type | Description |
---|---|---|
dofFocus | number | 景深孔径 |
composer.setDofAperture(dofAperture)
设置景深焦距
Kind: instance method of Composer
Param | Type | Description |
---|---|---|
dofAperture | number | 景深焦距 |
composer.setDofMaxblur(dofMaxblur)
设置景深最大模糊程度
Kind: instance method of Composer
Param | Type | Description |
---|---|---|
dofMaxblur | number | 景深最大模糊程度 |