Closed IzaZed closed 4 months ago
Hello, it sounds good, I didn't test your patch but i tested on my side and it was approximatively the same. There is just the doc missing; You can add few lines in bge.types.KX_2DFilterFrameBuffer.rst taking care about indentation/whitespaces and merge. Thanks!!
This feature allows
KX_FilterFrameBuffer
to provide aGPUTexture
object when added as offscreen buffer. This texture can then be used in other shaders and the gpu module draw calls.Usage:
and then to get the texture (and use it as
uniform sampler custom_framebuffer
in glsl):Test File: Test04.zip