Added FX Materials

* Added FX Shader Materials
* Added Projector Actor
This commit is contained in:
n00b
2025-04-11 00:51:47 -04:00
parent 14a315db60
commit b67d63d32c
73 changed files with 5384 additions and 1825 deletions

View File

@@ -31,6 +31,7 @@
#include "rc_joints.h"
#include <irrtheora.h>
using namespace irr;
using namespace core;
@@ -2535,6 +2536,17 @@ int rc_createImage(int w, int h, double* pdata)
return rc_createImageEx(w, h, pdata, 0, false);
}
void rc_convertToNormalMap(int img_id, double amp)
{
if(img_id < 0 || img_id >= rc_image.size())
return;
if(!rc_image[img_id].image)
return;
VideoDriver->makeNormalMapTexture(rc_image[img_id].image, amp);
}
void rc_getImageBuffer(int img_id, double * pdata)
{