Added FX Materials
* Added FX Shader Materials * Added Projector Actor
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user