Just today I have decided to embark on a journey that I have never been able to finish today, but hopefully this blog post will keep me in check for finishing. Anyway, I have had this idea for a while now of a fixed screen with a whole environment for the player to interact with. I think that I will call it **Fixed** The only thing that I have right now is a layering and lighting system for grass that will be changed in the future.
The way that the grass system works is before any grass is made I make a texture of some smooth noise then when the grass spawn depending on it's position it will get assigned to a certain level of brightness based on the noise. After this the brightness has color banding applied to it to make it have more distinct regions of it.
After this the grass will calculate its distance to the light source which in this case is the mouse with the y distance divided by 2 to make the y plains light shorter and make it look more like its just a high up camera not on top of the grass. In the end this external lighting is also color banded.
The things that were the most challenging was that I had to figure out that I had to divide the final result of the base lighting grid position, I still don't even know what I'm talking about with that. Also it just takes a while to iterate between different values to make it look good but that Is about it. Thanks for reading and have a great rest of your day :)
God Rays will be coming soon probably tomorrow
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
I love shaders, though it Is hard in scratch.
For the blocks should I show the camera from head on or isometric view, I'm leaning on isometric though that would be hard with layering so I am interested in what y'all think.
by blocks I mean hitboxes