CesiumGS/cesium

Make bloom post process check for selected feature

Open

#7,984 建立於 2019年7月8日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (3,324 fork)batch import
category - post-processinggood first issuetype - enhancement

倉庫指標

Star
 (11,758 star)
PR 合併指標
 (平均合併 26天 3小時) (30 天內合併 26 個 PR)

描述

Right now you can apply certain post process effects to just one feature. The bloom shader doesn't do any check to allow you to apply it to just to the selected feature as you would expect.

This is potentially pretty easy, you just need to take the check from another post process like the black and white one: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Shaders/PostProcessStages/BlackAndWhite.glsl

and apply it in the bloom shader: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Shaders/PostProcessStages/BloomComposite.glsl

The forum thread here has an example you could use for testing. Note that you'd need to test the selected feature on a model, since entities aren't yet supported there (see https://github.com/AnalyticalGraphicsInc/cesium/issues/6705).

貢獻者指南