亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

PostProcessStageComposite

PostProcessStages或其他后處理復合階段的集合,邏輯上一起執行。

所有階段按照數組的順序執行。輸入紋理根據inputPreviousStageTexture的值變化。如果inputPreviousStageTexturetrue,則每個階段的輸入是場景或在其之前執行的階段渲染到的輸出紋理。如果inputPreviousStageTexturefalse,則復合材料中每個階段的輸入紋理都相同。輸入紋理是由場景或上一階段的輸出紋理渲染到的紋理。

new PostProcessStageComposite(options)
Parameters:
options (Object) 一個
Name Description
options.stages
Array
按順序執行的PostProcessStages或復合物數組。
options.inputPreviousStageTexture
Boolean
default true
是否執行每個后處理階段,其中一個階段的輸入是前一個階段的輸出。否則,對每個包含的階段的輸入是在組合之前執行的階段的輸出。
options.name
String
default createGuid()
此后處理階段的唯一名稱,供其他復合材料參考。如果未提供名稱,將生成一個GUID。
options.uniforms
Object
后處理階段結構的別名。
Examples
// Example 1: separable blur filter
// The input to blurXDirection is the texture rendered to by the scene or the output of the previous stage.
// The input to blurYDirection is the texture rendered to by blurXDirection.
scene.postProcessStages.add(new bmgl.PostProcessStageComposite({
    stages : [blurXDirection, blurYDirection]
}));
// Example 2: referencing the output of another post-process stage
scene.postProcessStages.add(new bmgl.PostProcessStageComposite({
    inputPreviousStageTexture : false,
    stages : [
        // The same as Example 1.
        new bmgl.PostProcessStageComposite({
            inputPreviousStageTexture : true
            stages : [blurXDirection, blurYDirection],
            name : 'blur'
        }),
        // The input texture for this stage is the same input texture to blurXDirection since inputPreviousStageTexture is false
        new bmgl.PostProcessStage({
            fragmentShader : compositeShader,
            uniforms : {
                blurTexture : 'blur' // The output of the composite with name 'blur' (the texture that blurYDirection rendered to).
            }
        })
    ]
});
// Example 3: create a uniform alias
var uniforms = {};
bmgl.defineProperties(uniforms, {
    filterSize : {
        get : function() {
            return blurXDirection.uniforms.filterSize;
        },
        set : function(value) {
            blurXDirection.uniforms.filterSize = blurYDirection.uniforms.filterSize = value;
        }
    }
});
scene.postProcessStages.add(new bmgl.PostProcessStageComposite({
    stages : [blurXDirection, blurYDirection],
    uniforms : uniforms
}));
Throws
See:

Members

enabled : Boolean

準備好后是否執行此后期處理階段。

(readonly) inputPreviousStageTexture : Boolean

所有后期處理階段都按數組的順序執行。輸入紋理根據inputPreviousStageTexture的值變化。如果inputPreviousStageTexturetrue,則每個階段的輸入是場景或在其之前執行的階段渲染到的輸出紋理。如果inputPreviousStageTexturefalse,則復合材料中每個階段的輸入紋理都相同。輸入紋理是由場景或上一階段的輸出紋理渲染到的紋理。

(readonly) length : Number

此組合中的后期處理階段數。

(readonly) name : String

此后處理階段的唯一名稱,供后處理階段復合中的其他階段參考。

(readonly) ready : Boolean

確定此后處理階段是否準備好執行。

selected : Array

為應用后期處理選擇的功能。

uniforms : Object

后處理階段的統一值的別名。可能是undefined,在這種情況下,讓每個階段設置統一的值。

Methods

destroy()
銷毀此對象持有的WebGL資源。銷毀對象允許確定地釋放WebGL資源,而不是依賴垃圾收集器來銷毀此對象。

一旦對象被破壞,就不應使用它;調用除isDestroyed以外的任何函數都將導致DeveloperError異常。因此,將返回值(undefined)賦給對象,如示例中所述。

Throws
See:
get(index) → {PostProcessStage|PostProcessStageComposite}
index處獲取后期處理階段
Parameters:
index (Number) 后處理階段或組合的索引。
Throws
isDestroyed() → {Boolean}
如果此對象被破壞,則返回true;否則返回false。

如果此對象被破壞,則不應使用它;調用除isDestroyed以外的任何函數都將導致DeveloperError異常。

See:
主站蜘蛛池模板: 99精品国产自产在线观看 | 91精品久久国产青草 | 国产51| boobsmilking流奶水野战 | 亚洲成人第一 | 欧美一区二区三 | 日本午夜影院 | gay台湾无套男同志可播放 | 天若有情1992国语版完整版 | 99在线在线视频免费视频观看 | 亚洲午夜精品久久久久 | 亚洲视频在线一区二区三区 | 天堂网在线.www天堂在线资源 | 91gmail国产 | 日本中文字幕一区二区有码在线 | 二次元美女互摸隐私互扒 | 国产suv精品一区二区四区三区 | 羞羞麻豆国产精品1区2区3区 | 亚洲 制服 欧美 中文字幕 | 精品国产一级毛片大全 | 国产第一综合另类色区奇米 | 情乱奶水欲 | 精品一区二区免费视频蜜桃网 | 亚洲成人第一页 | 欧美人交性视频在线香蕉 | 1024免费观看完整版在线播放 | 免费二级毛片免费完整视频 | 国产三级自拍视频 | 99久久精品国语对白 | 四虎影视4hu最新地址在线884 | 四虎影院永久网站 | 国产精品99在线观看 | 嫩草蜜桃 | 日本大片免aaa费观看视频 | 精品国产一区二区三区国产馆 | 欧美日韩国产在线一区 | 青青久在线视频免费观看 | 欧美milk大超乳 | 国产精品一区二区不卡的视频 | 亚洲电影成人 成人影院 | 色一情 |