Skip to content

A little help with OpenGL #388

Answered by parasti
mardy asked this question in Q&A
Nov 12, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

The clip texture serves one purpose: to clip the shadow above the ball. This was so common in Neverball levels that it actually had a FAQ entry on the old Neverball website. And so I fixed it. The fix was to combine the shadow texture with a clip texture that is positioned such that the shadow color above the midpoint of the ball is multiplied with an alpha value of 0 - and disappears.

In your video, the clip texture is positioned correctly, but appears to be blended incorrectly: it should only affect the shadow color and should itself be invisible.

(I guess there's no difference from using a clip texture vs using a clipping plane - I just did it with a texture.)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mardy
Comment options

@mardy
Comment options

@parasti
Comment options

Answer selected by mardy
@mardy
Comment options

@parasti
Comment options

@mardy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants