mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
Consider shadow as color.
This commit is contained in:
parent
5c8565d9d1
commit
d3aa6a395f
3 changed files with 8 additions and 9 deletions
|
|
@ -40,7 +40,9 @@ target_link_libraries(mmo_extractor
|
||||||
|
|
||||||
file(GLOB mmp_extractor_src "mmp_extractor/*")
|
file(GLOB mmp_extractor_src "mmp_extractor/*")
|
||||||
add_executable(mmp_extractor ${mmp_extractor_src})
|
add_executable(mmp_extractor ${mmp_extractor_src})
|
||||||
target_link_libraries(mmp_extractor common)
|
target_link_libraries(mmp_extractor
|
||||||
|
common
|
||||||
|
)
|
||||||
|
|
||||||
file(GLOB model_src "model/*")
|
file(GLOB model_src "model/*")
|
||||||
add_library(model ${model_src})
|
add_library(model ${model_src})
|
||||||
|
|
|
||||||
|
|
@ -100,10 +100,7 @@ struct segment
|
||||||
uint16_t getTexture() const { return texture_index & 0x0fff; } // first 4 bits are unk (flags?)
|
uint16_t getTexture() const { return texture_index & 0x0fff; } // first 4 bits are unk (flags?)
|
||||||
};
|
};
|
||||||
|
|
||||||
struct shadow
|
using shadow = color;
|
||||||
{
|
|
||||||
uint8_t unk[4];
|
|
||||||
};
|
|
||||||
|
|
||||||
struct normal
|
struct normal
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,16 +16,16 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "mmp.h"
|
||||||
|
|
||||||
|
#include <primitives/filesystem.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "mmp.h"
|
|
||||||
|
|
||||||
#include <primitives/filesystem.h>
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue