#include "CFTTMaterialManager.h" #include "shader_data/CFTT3dGenShader_Setup.h" #include "CFTT3dGenShader.h" CFTT3dGenShader CFTT3dGenShader::s_tInstance; //------------------------------------------------------------------------------------------------- //0020ED20 //^_^ CFTT3dGenShader::CFTT3dGenShader() : CFTTUberShader(&CFTT3dGenShaderSetup_328324) { } //------------------------------------------------------------------------------------------------- //0020ED2C //^_^ CFTT3dGenShader::~CFTT3dGenShader() { } //------------------------------------------------------------------------------------------------- //001239AE //^_^ void CFTT3dGenShader::SetBlendMode(EFTT3dGenShader_BlendMode eBlendMode, int a2) { } //------------------------------------------------------------------------------------------------- //001239BE //^_^ //原始汇编r1寄存器没有用到,即多了一个参数,如果我的代码,加上一个无用的参数,汇编的结果完全相同 void CFTT3dGenShader::SetSampler00(CFTTTexParam aTexParam, int a2) { int ret=rand(); printf("%x%x%x%x",ret,aTexParam.GetFlag0(), aTexParam.GetFlag4(),a2); } //------------------------------------------------------------------------------------------------- //0020E760 //^_^ void CFTT3dGenShader::SetMatDiffuse(CFTTVector32x4 const& pVector32x4, int a2) { } //------------------------------------------------------------------------------------------------- //0020ED30 ushort CFTT3dGenShader::CreateMat(EFTT3dGenShader_TexMode eTexMode, EFTT3dGenShader_LightingMode eLightingMode, EFTT3dGenShader_AlphaTest eAlphaTest, CFTTVector32 const& pVector32_1, CFTTVector32x4 const& pVector32x4_2, CFTTVector32x4 const& pVector32x4_3, float f1, CFTTTexParam aTexParam, EFTT3dGenShader_BlendMode eBlendMode, EFTT3dGenShader_CullMode eCullMode) { return 0; } //-------------------------------------------------------------------------------------------------