ElixirDoom.Gpu.Shimmer (elixir_doom v0.2.0)

Copy Markdown View Source

Doom's shimmer (a spectre, a partly invisible player's weapon) as a graphics card material: the picture's shape filled with what is behind it, each row taken from one of Doom's 200 screen rows above or below, darkened as light table 6 darkens.

{material, live} = ElixirDoom.Gpu.Shimmer.material(live, target, picture, table)

table is the fixed light table in force, or nil; it keys the material with the picture's texture through that table, whose alpha cuts the shape.

Summary

Functions

The shimmer material of picture, made the first time.

Functions

material(live, target, picture, table)

The shimmer material of picture, made the first time.