Fog effect
#4458
Replies: 2 comments
-
Deck.gl support customized effects, here is the doc |
Beta Was this translation helpful? Give feedback.
0 replies
-
I might be wrong as I am translating from someone else, but I have been advised that "Using postprocess you can't get depth frame buffer, because it does not exist, so that's why i'm creating it onWebGLInitialized" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working with someone who is experienced in WebGL but not Deck specifically.
We are trying to achieve a fog effect, in the same way that Caesium achieves. Maybe even with the ability to control properties of the fog.
We have had some preliminary success, but has involved a lot of additional GL code, specifically in onWebGLInitialized to access the depth buffer after draw.
Is this additional onWebGLInitialized code required or does DeckGL expose an api for such things?
If any one can suggest a way forward I am happy to share the code, with the intention of creating an fog effect in addition to the lighting effects.
Beta Was this translation helpful? Give feedback.
All reactions