This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // v2 an improvement over the original. | |
| // github.com/mrbid | |
| // https://github.com/jcwml/neural_zodiac | |
| // gcc main.c -lm -Ofast -mfma -o main | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <math.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| -------------------------------------------------- | |
| James William Fletcher (github.com/mrbid) | |
| December 2022 - esAux3.h v3.0 | |
| -------------------------------------------------- | |
| A pretty good color converter: https://www.easyrgb.com/en/convert.php | |
| Lambertian fragment shaders make a difference, but only if you normalise the | |
| vertNorm in the fragment shader. Most of the time you won't notice the difference. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| James William Fletcher (github.com/mrbid) | |
| September 2021 | |
| Portable floating-point Vec3 lib with basic SSE support | |
| This is the THREAD-SAFE version. | |
| */ | |
| #ifndef VEC_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| -------------------------------------------------- | |
| James William Fletcher (github.com/mrbid) | |
| December 2022 - esAux2.h v2.2 | |
| -------------------------------------------------- | |
| A pretty good color converter: https://www.easyrgb.com/en/convert.php | |
| The shadeFullbrightT() shader is for menu's, generally the idea otherwise | |
| is to use vertex color arrays, they are more efficient than using UV coordinates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| -------------------------------------------------- | |
| James William Fletcher (github.com/mrbid) | |
| SEPTEMBER 2022 | |
| -------------------------------------------------- | |
| *** WIP, did I get the 4 dimensional array index right? where is walley leaking memory? *** | |
| I lost interest in this for now, may revisit it next year. | |
| This is a forward pass network I have spent a lot of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef csgo_mrbid_net | |
| #define csgo_mrbid_net | |
| /* | |
| James William Fletcher | |
| github.com/mrbid - September 2022 | |
| This is a forward pass network I have spent a lot of | |
| time working on from scratch. As of this month and | |
| year I consider this to be the best performing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| -------------------------------------------------- | |
| James William Fletcher (github.com/mrbid) | |
| JANURARY 2023 | |
| -------------------------------------------------- | |
| You may want to install espeak via your package manager. | |
| sudo apt install clang espeak libx11-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| -------------------------------------------------- | |
| James William Fletcher (github.com/mrbid) | |
| February 2020 - October 2021 | |
| -------------------------------------------------- | |
| This is a re-release with a crosshair and other | |
| minimal changes. | |
| This uses pre-computed weights designed to target | |
| only the aqua blue bones model. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Here is also a version with always_inline; https://godbolt.org/z/1hcvv65Pv | |
| // performance is basically the same. | |
| #include <stdio.h> | |
| #define uint unsigned int | |
| struct Bits | |
| { | |
| unsigned b0:1, b1:1, b2:1, b3:1, b4:1, b5:1, b6:1, b7:1; | |
| }; | |
| union CBits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define uint unsigned int | |
| unsigned char toByte(uint b[8]) | |
| { | |
| unsigned char c = 0; | |
| for(int i=0; i < 8; ++i) | |
| if(b[i]) | |
| c |= 1 << i; | |
| return c; |