#Snake Game
1 messages · Page 1 of 1 (latest)
Also here is a repo link: https://github.com/OlehDvorychanskyi/SnakeGame
This looks dope! Nice job. :D.
Thanks)
Yeah. :D.
wow this is really polished
How did you make that glowing effect?
I used shaders in which I took the position and color of a certain light and calculated the distance from each pixel. The closer the pixel is to the position of the light, the greater the effect this light will have on the pixel. I also used a specific radius. That is, if the distance from the light to the pixel is greater than the radius, then the light has no effect on the color of the pixel.
This is just like simple point light
But l draw only "grey" cells with shaders so light has no effect on the black one and on the snake segments
which file should i look in for the code?
CellShader.frag