Skip to content

Chickens

Michael edited this page Jul 1, 2024 · 15 revisions

Cluck, cluck.

I really like birds.

Luminous Chickens is a set of 3D lighting shaders. Directional lights, point lights and spot lights are all contained, as well as pixel fog. Lighting can be done in either the vertex or fragment shader.

To get started, download the YYMP from any of the sources listed and import it into GameMaker (Tools > Import Local Package), or go through the GameMaker Marketplace and add it to your project from there.

Cartoon Chickens is a paid add-on that you can use to enable toon shading in your 3D scenes.

Shadow Chickens is a paid add-on that you can use to cast shadows in your 3D scene.

What's Included

  • Directional lights - defined by an XYZ direction vector and a light color
  • Point lights - defined by an XYZ position, a light color, and a range. Optionally you may specify an inner range where the light will start to fade
  • Spot lights - defined by an XYZ position, an XYZ direction vector, a light color, and a cutoff angle. Optionally you may specify an inner cutoff angle where the light will start to fade. The option to calculate the lighting in the fragment shader (looks better - this is what one usually wants) or the vertex shader (marginally faster - looks terrible with large triangles, particularly with spot lights)
  • Pixel fog - defined by a color, a start distance, and an end distance. Optionally you may specify a strength modifier that will affect the amount that fog at the maximum distance will be blended to the color

Documentation

The documentation for Luminous Chickens can be found on the following pages:

Links

  • The project can be found on itch.io here.
  • I'll add a link to the GameMaker Marketplace whenever I get around to setting that up.

The Itch page contains an HTML5 demo, which you can run if you're curious about performance. It performs pretty well.

Notes

  • Knowledge of how 3D lighting works is strongly recommended. See the About Lighting page.

Credits

  • The chicken icon and walking sprite was created by @alemunin
  • The skybox and 3D meshes in the demo were created by the excellent synty studios

Clone this wiki locally