mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-22 15:02:54 -04:00
fix pews texture
This commit is contained in:
@@ -28,6 +28,9 @@ void daAlink_c::hsChainShape_c::draw() {
|
||||
j3dSys.setVtxPos(modelData->getVtxPosArray(), modelData->getVtxNum());
|
||||
j3dSys.setVtxNrm(modelData->getVtxNrmArray(), modelData->getNrmNum());
|
||||
j3dSys.setVtxCol(modelData->getVtxColorArray(0), modelData->getColNum());
|
||||
#if TARGET_PC
|
||||
j3dSys.setTexture(modelData->getTexture());
|
||||
#endif
|
||||
J3DShape::resetVcdVatCache();
|
||||
|
||||
material->loadSharedDL();
|
||||
|
||||
@@ -256,6 +256,9 @@ void daObjFchain_shape_c::draw() {
|
||||
j3dSys.setVtxPos(modelData->getVtxPosArray(), modelData->getVtxNum());
|
||||
j3dSys.setVtxNrm(modelData->getVtxNrmArray(), modelData->getNrmNum());
|
||||
j3dSys.setVtxCol(modelData->getVtxColorArray(0), modelData->getColNum());
|
||||
#if TARGET_PC
|
||||
j3dSys.setTexture(modelData->getTexture());
|
||||
#endif
|
||||
J3DShape::resetVcdVatCache();
|
||||
material->loadSharedDL();
|
||||
material->getShape()->loadPreDrawSetting();
|
||||
|
||||
@@ -315,6 +315,9 @@ void daObjWchain_shape_c::draw() {
|
||||
j3dSys.setVtxPos(model_data->getVtxPosArray(), model_data->getVtxNum());
|
||||
j3dSys.setVtxNrm(model_data->getVtxNrmArray(), model_data->getNrmNum());
|
||||
j3dSys.setVtxCol(model_data->getVtxColorArray(0), model_data->getColNum());
|
||||
#if TARGET_PC
|
||||
j3dSys.setTexture(model_data->getTexture());
|
||||
#endif
|
||||
J3DShape::resetVcdVatCache();
|
||||
material->loadSharedDL();
|
||||
material->getShape()->loadPreDrawSetting();
|
||||
|
||||
@@ -11,6 +11,9 @@ void dMdl_c::draw() {
|
||||
j3dSys.setVtxCol(mpModelData->getVtxColorArray(0), mpModelData->getColNum());
|
||||
J3DShape::resetVcdVatCache();
|
||||
|
||||
#if TARGET_PC
|
||||
j3dSys.setTexture(mpModelData->getTexture());
|
||||
#endif
|
||||
J3DShape* shape = mpModelData->getMaterialNodePointer(mMaterialId)->getShape();
|
||||
mpModelData->getMaterialNodePointer(mMaterialId)->loadSharedDL();
|
||||
shape->loadPreDrawSetting();
|
||||
|
||||
Reference in New Issue
Block a user