2014-03-01 50 views

回答

0

您可以設置的Context3D的configureBackBuffer方法的寬度和高度,並在Stage3D的實例x和y:

stage3D.x = stage3D.y = 0; 
context3D.configureBackBuffer(width, height, antiAlias, enableDepthAndStencil); 

在lib您使用的寬度和高度設置爲匹配stageWidth/stageHeight。鏈接到特定的代碼行:

https://github.com/inspirit/GPUImage/blob/12d32dab0e479620fd6420dc3fa7fcfe726502d2/examples/GPUImageShowcase.as#L120

stageW = stage.stageWidth; 
stageH = stage.stageHeight; 

// Setup context 
var stage3D:Stage3D = stage.stage3Ds[0]; 
stage3D.removeEventListener(Event.CONTEXT3D_CREATE, onContextCreated); 
context3D = stage3D.context3D; 
context3D.configureBackBuffer(
    stageW, 
    stageH, 
    antiAlias, 
    enableDepthAndStencil 
); 
+0

你會認爲這是它,但我想硬編碼值100,100和濾鏡效果仍適用於整個舞臺! –

+0

也許嘗試使用fillMode和GPUImage.init中的值來玩。必須有一些縮放或調整大小或發生了什麼! – imcg