Skip to content

Commit e05571d

Browse files
committed
Initial Release
1 parent a1e380b commit e05571d

55 files changed

Lines changed: 11522 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ The Construct plugin is distributed as a [.c3addon file](https://www.construct.n
1717
## What is a Normal Map?
1818

1919
Normal mapping is a texture mapping technique used for faking the lighting of bumps and dents – an implementation of bump mapping. Each normal map pixel represents the direction in which the sprite's pixel is facing.
20+
2021
![normals60degreescropped](https://github.com/Everade/NormalMap32/assets/12261601/7f708429-d451-4abf-a192-e44298d647f5)
2122

23+
https://github.com/Everade/NormalMap32/assets/12261601/5e1581fb-cf97-445b-9075-a88f3becde71
24+
2225
## How does it work?
2326

2427
You have to create OpenGL/WebGL compatible normal map sprites for each 2D sprite you want to apply the effect onto. This normal map sprite is used as a foreground effect that needs to be placed on top of the original 2D sprite background.
@@ -32,6 +35,7 @@ Please note that a light source object is not a requirement, but it's a convenie
3235
Applying the effect to lots of individual normal map sprites can be costly. Consider to either draw all normal sprites to a canvas or apply it to a layer instead. Set Max Light ID to the lowest possible value for enhanced shader performance.
3336

3437
## Features
38+
3539
- Supports WebGL1.
3640
- Up to 32 simultaneous RGB light sources per normal map.
3741
- Linear, quadratic or mixed light falloff.

0 commit comments

Comments
 (0)