david-vanderson / dvui

Other
429 stars 35 forks source link

raylib: implement textureCreateTarget and renderTarget #162

Closed david-vanderson closed 1 week ago

david-vanderson commented 2 weeks ago

Rendering to the texture produces an upsidedown image. In the web backend I fixed this by changing the matrix used in the shader. But that same fix doesn't seem to work in raylib.

The fix is commented out with a TODO

I've also turned off all clipping while testing this.

david-vanderson commented 2 weeks ago

@VisenDev any chance you could take a look at this?

david-vanderson commented 2 weeks ago

@VisenDev Sorry for the noise. After I walked away I thought "maybe it's our old friend backface culling", and yes. Cleaning it up now.

VisenDev commented 2 weeks ago

No problem. Want me to still take a look or is it good?

david-vanderson commented 2 weeks ago

Give me a few minutes and then I'd love a review.

david-vanderson commented 2 weeks ago

Okay - how does that look?

david-vanderson commented 2 weeks ago

Good points - will address soon.