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

@@ -0,0 +1,4 @@
#title ConvertToNormalMap [RCBasic Doc]
#header sub ConvertToNormalMap(img_id, amp)
Converts an image to a format for normal maps

View File

@@ -1,4 +1,4 @@
#title CreateConeMesh [RCBasic Doc]
#header Function CreateConeMesh( radius, cone_length, tesselation, top_color, bottom_color )
Create a cone mesh

View File

@@ -1,4 +1,4 @@
#title CreateCylinderMesh [RCBasic Doc]
#header Function CreateCylinderMesh( radius, cylinder_length, tesselation, color, close_top )
Create a cylinder mesh

View File

@@ -0,0 +1,6 @@
#title CreateProjectorActor [RCBasic Doc]
#header Function CreateProjectorActor()
Create a projector actor.
Projector actors can be used to project a texture over objects in its field of view.

View File

@@ -1,4 +1,4 @@
#title CreateVolumeLightMesh [RCBasic Doc]
#header Function CreateVolumeLightMesh( u, v, foot_color, tail_color, lp_distance, dim_x, dim_y, dim_z )
Create a mesh to represent a light volume.

View File

@@ -1,4 +1,4 @@
#title DeleteAN8 [RCBasic Doc]
#header Sub DeleteAN8( an8_project )
Clears a anim8or project from program memory.

4
doc/files/getgpuinfo.txt Normal file
View File

@@ -0,0 +1,4 @@
#title GetGPUInfo$ [RCBasic Doc]
#header function GetGPUInfo$()
Returns the GPU Vendor info

View File

@@ -0,0 +1,6 @@
#title GetMaterialConstant [RCBasic Doc]
#header Sub GetMaterialConstant(material, m_constant$, ByRef n1, ByRef n2, ByRef n3, ByRef n4)
Gets the constant value of an FX material
#ref SetMaterialConstant

View File

@@ -0,0 +1,8 @@
#title GetMaterialConstantName$ [RCBasic Doc]
#header Function GetMaterialConstantName$(material_type, index)
Returns the name of a uniform for an FX material type
NOTE: index should be a number between 0 and NumMaterialConstants
#ref NumMaterialConstants

View File

@@ -0,0 +1,6 @@
#title GetProjectorFOV [RCBasic Doc]
#header Function GetProjectorFOV(actor)
Returns the field of view for a projector
#ref SetProjectorFOV

View File

@@ -0,0 +1,6 @@
#title GetProjectorTarget [RCBasic Doc]
#header Sub GetProjectorTarget(actor, ByRef x, ByRef y, ByRef z)
Get the point a projector is looking at
#ref SetProjectorTarget

View File

@@ -0,0 +1,6 @@
#title GetSceneAmbientColor [RCBasic Doc]
#header Function GetSceneAmbientColor()
Returns the ambient light color of the scene
#ref SetSceneAmbientColor

View File

@@ -0,0 +1,6 @@
#title GetSceneShadowColor [RCBasic Doc]
#header Function GetSceneShadowColor()
Returns the shadow color of the scene
#ref SetSceneShadowColor

View File

@@ -0,0 +1,4 @@
#title NumMaterialConstants [RCBasic Doc]
#header Function NumMaterialConstants(material_type)
Returns the number of shader uniforms for an FX material

View File

@@ -0,0 +1,6 @@
#title SetMaterialConstant [RCBasic Doc]
#header Sub SetMaterialConstant(material, m_constant$, n1, n2, n3, n4)
Sets the constant value of an FX material
#ref GetMaterialConstant

View File

@@ -0,0 +1,6 @@
#title SetProjectorFOV [RCBasic Doc]
#header Sub SetProjectorFOV(actor, fov)
Set the field of view for a projector
#ref GetProjectorFOV

View File

@@ -0,0 +1,4 @@
#title SetProjectorTarget [RCBasic Doc]
#header Sub SetProjectorTarget(actor, x, y, z)
Set the point a projector is pointed at

View File

@@ -0,0 +1,6 @@
#title SetSceneAmbientColor [RCBasic Doc]
#header Sub SetSceneAmbientColor(color)
Sets the ambient light color of the scene
#ref GetSceneAmbientColor

View File

@@ -0,0 +1,6 @@
#title SetSceneShadowColor [RCBasic Doc]
#header Sub SetSceneShadowColor(color)
Sets the shadow color of the scene
#ref GetSceneShadowColor