mainImage for using depth does not work #300
Unanswered
aliiscript
asked this question in
Q&A
Replies: 1 comment
-
Make sure your effect is using import { Effect, EffectAttribute } from "postprocessing";
class MyEffect extends Effect {
constructor() {
super("MyEffect", fragmentShader, {
attributes: EffectAttribute.DEPTH
});
}
} |
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
Uh oh!
There was an error while loading. Please reload this page.
-
the regular
void mainImage(const in vec4 inputColor, const in vec2 uv, out vec4 outputColor);
works fine but I want to use the one that includes depth (void mainImage(const in vec4 inputColor, const in vec2 uv, const in float depth, out vec4 outputColor);
) as a parameter but get this error: 'e1MainImage' : no matching overloaded function found . I assume it because that function doesn't exist but not sure how to fix, any help would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions