Texture, lang & shader update
This commit is contained in:
parent
6f40eae646
commit
c9aacbff2b
18 changed files with 50 additions and 25 deletions
|
@ -0,0 +1,9 @@
|
|||
#include frex:shaders/api/fragment.glsl
|
||||
#include frex:shaders/lib/math.glsl
|
||||
|
||||
void frx_startFragment(inout frx_FragmentData fragData) {
|
||||
float a = abs(fragData.spriteColor.g - fragData.spriteColor.r);
|
||||
float b = abs(fragData.spriteColor.g - fragData.spriteColor.b);
|
||||
float l = frx_luminance(fragData.spriteColor.rgb);
|
||||
fragData.emissivity = ((l > 0.9) || (a > 0.1 && b > 0.1 && fragData.spriteColor.g > 0.5)) ? 1 : 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue