cityplanners / bones-engine

The Bones Engine, a game engine written in Rust using Vulkan
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Implement different types of lights #6

Open cpadilla opened 1 year ago

cpadilla commented 1 year ago

Point Light: This is a light source that emits light in all directions from a single point in space. Point lights are often used to simulate light bulbs or lamps.

Directional Light: This is a light source that emits light in a specific direction, as if it were coming from a distant source like the sun. Directional lights are often used to simulate sunlight or moonlight.

Spot Light: This is a light source that emits light in a cone-shaped beam from a single point in space. Spot lights are often used to highlight a specific object or area in the scene.

Ambient Light: This is a general light source that illuminates the entire scene evenly. Ambient light is often used to simulate natural light in an outdoor scene.

Area Light: This is a light source that has a specific size and shape, such as a rectangular or circular shape. Area lights are often used to simulate light fixtures such as fluorescent lights or street lamps.

Volume Light: This is a type of light that is emitted from within a volume, such as fog or smoke. Volume lights are often used to create atmospheric effects in a scene.

cpadilla commented 1 year ago

See https://youtu.be/ToCSRyXva5w?t=567

This should be sufficient enough for my needs. Implement BaseLight, DirectionalLight and PointLight.