Z
Zaid
Guest
I'm looking to implement a shader to simulate the light reflection of a gemstone (like the one above) onto a normal-mapped sprite so that it gets a shimmer like in real gemstones.
Currently I've been following this tutorial to get really simple normal mapped lighting and then setting the ambient lighting to pure white light to get an additive effect to add some kind of incandescence type thing to my sprites. My shader code is practically identical to the code in that article. Here's a picture of what I've got so far:
On the left is the sprite with the current shading, on the right is the normal sprite itself.
Obviously, it's not great at all but I'm unsure how to proceed to get more of the semi-translucent, glittery surface effect like in actual gemstones. This is the closest thing I've been able to find on google about what I'm looking for. But trying out the implementation myself creates just black spots all over the sprites. And everything else I've found on Google has been weird Blender tutorials. Perhaps I just need to play with the normal maps more to give it more hard edges on the surface of the sprite, but I haven't been able to find a way to get it looking right without weird dark spots.
If anyone has a full solution, it would be greatly appreciated but really I'm only looking for a push in the right direction. Maybe the correct search query or link to an article that explains what I'm looking to achieve. Anything to get me going again because right now I'm stuck with what I should be looking for / trying out.