PSYCHE
Added a sun. Actually, this involved going way down the garden path of computing the projected screen position of the sun, then reprojecting that into my 2D world so I could draw a bloom effect. This all worked great, and I’m very pleased with sorting that out — among other things that would be needed to display targeting icons and whatnot. There’s just the minor little issue that the bloom effect looks awful, so I turned it off (that’s just the generic sun in the image right now.) Also, I’m running into a bizarre problem trying to use glGenQuery to make a render query — this would let me determine how much of the sun is occluded, so the bloom could be faded out in such a situation. But, XCode acts as if it can’t find the actual body of the function, and the internet has been no help whatsoever. Not sure what the story is with that, honestly.
Notes
-
mayflystudio posted this