White Paper for v2 #143
takuma-hmng8
started this conversation in
Ideas
Replies: 3 comments 2 replies
uniformValuesとuniformsについてクライアントレイヤーはhoge: {
fuga: 0;
}となっていて、 setValues({
hoge: {
fuga: 0,
},
});や、 material.setUniformValues({
hoge: {
fuga: 0,
},
});のように値をセット可能 materialレイヤーはhoge_fuga:numberとなっていて、 material.hoge_fuga = 0;のようにsetterを使って値をセット可能 <noiseMaterial
mixDst_src={funkun}
mixDst_colorFactor={0.5}
scale={0.01}
/>のように宣言的に値をセット可能 shaderレイヤーはhoge_fuga:{value:0}となっていて、shaderでは uniform float hoge_fuga;となっている |
0 replies
samplingFx系
… etc 検証
暫定方針 : Aたぶんできない。 暫定方針 : B事前準備
実装方針
Srcシステム
その他
|
0 replies
フックのConfig値を更新する方法が無い const gaussianBlur = useGaussianBlur({
size,
dpr: 1,
radius: 20, // 単純な引数なので更新できない
sigma: new THREE.Vector2(1,1), // uniformの値なのでsetValues関数で更新が可能
src: tex,
})この場合、sigmaはuniformの値のため 解決策
|
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Material
FxMaterial,BasicFxMaterial,SamplingFxMaterialBasicFx
Color correction and basic fx. like layer styles in photoshop
mix
color adjustments この順番で適用される
misc
Hooks
FXs
Concept
fboAutoSetSizeshould be optional, as the resolution is updated to reactive but the render result is reset when renderTarget is setSize.Materials
createMaterialImplAnd the Material of almost all hooks is also exported
All reactions