Hello, my friend iyad needs some helo with his glsl code, here is what he asked me to ask the issue here:
"I have this shader which is just a prewitt operator, I feed it the depth texture, the goal was to outline objects, and it works great when the camera is close to surface, but breakes otherwise
is there a way to create true stencil outliunes in upbge, and access them in shader?
if not how can this one be fixed, to get something similar to Unity’s “Edge Detect Effect Normals” post processing effect
Link to the current broken code:
Link to unitys edge detection
This is what iyad said, he needs your help, pls help him, he doesnt use blender artist so he asked me to post the issue here, pls help him, thanks!