本文整理匯總了Java中com.bitfire.postprocessing.effects.Bloom類的典型用法代碼示例。如果您正苦於以下問題:Java Bloom類的具體用法?Java Bloom怎麽用?Java Bloom使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Bloom類屬於com.bitfire.postprocessing.effects包,在下文中一共展示了Bloom類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: rebuildProcessor
import com.bitfire.postprocessing.effects.Bloom; //導入依賴的package包/類
public PostProcessor rebuildProcessor() {
float screenw = Gdx.graphics.getWidth();
float screenh = Gdx.graphics.getHeight();
PostProcessor processor = new PostProcessor(false, true, true);
Bloom.Settings settings = new Bloom.Settings(
"blah",
2,
Config.get().bloomtreshold,
Config.get().baseintensity,
Config.get().basesaturation,
Config.get().bloomintensity,
Config.get().bloomsaturation);
Bloom bloomEffect = new Bloom((int)(screenw/8), (int)(screenh/8));
bloomEffect.setSettings(settings);
if (Config.get().bloom) processor.addEffect(bloomEffect);
processor.setClearColor(0.5f, 0.5f, 0.5f, 0f);
bloom = Config.get().bloom;
return processor;
}