-
Notifications
You must be signed in to change notification settings - Fork 45
Add mask layers #33
Comments
Nope the alpha for all layers along with the base material must be |
Got it! do you mean <1 ? |
Ah yes sorry! |
Could you give me a pointer on how to start something like an override layer, i.e. a layer that runs last in the shader and can modify the final color output? |
For a layer to appear last it needs to be composed laast in the layer stack. In react: <LayerMaterial>
{ /* Some other layers */ }
<YourLastLayer />
</LayerMaterial> In vanialla: new LayerMaterial({
layers: [
// Some other layers
new YourLastLayer()
]
}) With the |
Right, but it only overrides the previous layers right, not the basematerial or did I miss something? |
If you use the Please reach out on the pmndrs discord for discussions/questions. Link is in the readme |
Hi, is it possible to make a layer that's last in line in the fragment shader renderer. The reason I ask is because I'm trying to create a an AlphaGradient Layer, essentially the same as the Gradient layer, except it works as a "mask" for the whole object, so you should be able to use it to fade out an object selectively using the same params as you use to control the Gradient Layer.
Here's a test were I just tried hardcoding the alpha value to be 0.0 to make it invisible, however this quick test revealed that the alpha value doesn't seem to propegate / override the main material?
The text was updated successfully, but these errors were encountered: