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

@@ -743,6 +743,9 @@ add_embedded_arg("v", ID_TYPE_NUM);
embed_function("SetAntiAliasMode", ID_TYPE_SUB);
add_embedded_arg("aa_mode", ID_TYPE_NUM);
embed_function("GetAntiAliasMode", ID_TYPE_FN_NUM);
embed_function("ConvertToNormalMap", ID_TYPE_SUB);
add_embedded_arg("img_id", ID_TYPE_NUM);
add_embedded_arg("amp", ID_TYPE_NUM);
embed_function("InKey", ID_TYPE_FN_NUM);
embed_function("Key", ID_TYPE_FN_NUM);
add_embedded_arg("key_code", ID_TYPE_NUM);
@@ -1079,6 +1082,7 @@ add_embedded_arg("msg$", ID_TYPE_STR);
embed_function("Runtime$", ID_TYPE_FN_STR);
embed_function("NumCPUs", ID_TYPE_FN_NUM);
embed_function("SystemRam", ID_TYPE_FN_NUM);
embed_function("GetGPUInfo$", ID_TYPE_FN_STR);
embed_function("DimMatrix", ID_TYPE_FN_NUM);
add_embedded_arg("m_rows", ID_TYPE_NUM);
add_embedded_arg("m_cols", ID_TYPE_NUM);
@@ -2096,6 +2100,7 @@ embed_function("RemoveActorShadow", ID_TYPE_SUB);
add_embedded_arg("actor", ID_TYPE_NUM);
embed_function("ActorExists", ID_TYPE_FN_NUM);
add_embedded_arg("actor", ID_TYPE_NUM);
embed_function("CreateProjectorActor", ID_TYPE_FN_NUM);
embed_function("CreateActorAnimation", ID_TYPE_FN_NUM);
add_embedded_arg("actor", ID_TYPE_NUM);
add_embedded_arg("start_frame", ID_TYPE_NUM);
@@ -2860,6 +2865,12 @@ add_embedded_arg("density", ID_TYPE_BYREF_NUM);
add_embedded_arg("pixelFog", ID_TYPE_BYREF_NUM);
add_embedded_arg("rangeFog", ID_TYPE_BYREF_NUM);
embed_function("ClearScene", ID_TYPE_SUB);
embed_function("SetSceneShadowColor", ID_TYPE_SUB);
add_embedded_arg("color", ID_TYPE_NUM);
embed_function("GetSceneShadowColor", ID_TYPE_FN_NUM);
embed_function("SetSceneAmbientColor", ID_TYPE_SUB);
add_embedded_arg("color", ID_TYPE_NUM);
embed_function("GetSceneAmbientColor", ID_TYPE_FN_NUM);
embed_function("startParticleEmitter", ID_TYPE_SUB);
add_embedded_arg("actor", ID_TYPE_NUM);
embed_function("stopParticleEmitter", ID_TYPE_SUB);
@@ -3098,6 +3109,21 @@ add_embedded_arg("actor", ID_TYPE_NUM);
add_embedded_arg("patchX", ID_TYPE_NUM);
add_embedded_arg("patchZ", ID_TYPE_NUM);
add_embedded_arg("LOD", ID_TYPE_NUM);
embed_function("SetProjectorTarget", ID_TYPE_SUB);
add_embedded_arg("actor", ID_TYPE_NUM);
add_embedded_arg("x", ID_TYPE_NUM);
add_embedded_arg("y", ID_TYPE_NUM);
add_embedded_arg("z", ID_TYPE_NUM);
embed_function("GetProjectorTarget", ID_TYPE_SUB);
add_embedded_arg("actor", ID_TYPE_NUM);
add_embedded_arg("x", ID_TYPE_BYREF_NUM);
add_embedded_arg("y", ID_TYPE_BYREF_NUM);
add_embedded_arg("z", ID_TYPE_BYREF_NUM);
embed_function("SetProjectorFOV", ID_TYPE_SUB);
add_embedded_arg("actor", ID_TYPE_NUM);
add_embedded_arg("fov", ID_TYPE_NUM);
embed_function("GetProjectorFOV", ID_TYPE_FN_NUM);
add_embedded_arg("actor", ID_TYPE_NUM);
embed_function("createMaterial", ID_TYPE_FN_NUM);
embed_function("deleteMaterial", ID_TYPE_SUB);
add_embedded_arg("material_id", ID_TYPE_NUM);
@@ -3254,3 +3280,22 @@ add_embedded_arg("actor", ID_TYPE_NUM);
add_embedded_arg("material", ID_TYPE_NUM);
embed_function("MaterialExists", ID_TYPE_FN_NUM);
add_embedded_arg("material", ID_TYPE_NUM);
embed_function("NumMaterialConstants", ID_TYPE_FN_NUM);
add_embedded_arg("material_type", ID_TYPE_NUM);
embed_function("GetMaterialConstantName$", ID_TYPE_FN_STR);
add_embedded_arg("material_type", ID_TYPE_NUM);
add_embedded_arg("index", ID_TYPE_NUM);
embed_function("SetMaterialConstant", ID_TYPE_SUB);
add_embedded_arg("material", ID_TYPE_NUM);
add_embedded_arg("m_constant$", ID_TYPE_STR);
add_embedded_arg("n1", ID_TYPE_NUM);
add_embedded_arg("n2", ID_TYPE_NUM);
add_embedded_arg("n3", ID_TYPE_NUM);
add_embedded_arg("n4", ID_TYPE_NUM);
embed_function("GetMaterialConstant", ID_TYPE_SUB);
add_embedded_arg("material", ID_TYPE_NUM);
add_embedded_arg("m_constant$", ID_TYPE_STR);
add_embedded_arg("n1", ID_TYPE_BYREF_NUM);
add_embedded_arg("n2", ID_TYPE_BYREF_NUM);
add_embedded_arg("n3", ID_TYPE_BYREF_NUM);
add_embedded_arg("n4", ID_TYPE_BYREF_NUM);