mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Re-submission of the Volumetric Fog PR, with cleanup.
This commit is contained in:
parent
272e3138a0
commit
a90eb9762b
62 changed files with 2541 additions and 6 deletions
BIN
Templates/Full/game/tools/classIcons/VolumetricFog.png
Normal file
BIN
Templates/Full/game/tools/classIcons/VolumetricFog.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
|
|
@ -980,7 +980,19 @@ function ObjectBuilderGui::buildObserverDropPoint(%this)
|
|||
//------------------------------------------------------------------------------
|
||||
// System
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function ObjectBuilderGui::buildVolumetricFog(%this)
|
||||
{
|
||||
// Change this if you want to default to another Folder
|
||||
// Otherwise every time you want to add a Fog you will go this.
|
||||
%defShape = "/art/environment/Fog_Cube.dts";
|
||||
%this.lastPath=getMainDotCsDir() @ %defShape;
|
||||
OBObjectName.setValue( "" );
|
||||
%this.objectClassName = "VolumetricFog";
|
||||
%this.addField( "shapeName", "TypeFile", "Shape (Fog volume)", "", "*.dts;*.dae");
|
||||
%this.addField("Scale", "TypePoint3", "Scale", "1 1 1");
|
||||
%this.addField("FogColor", "TypeColorI", "FogColor", "200 200 200 255");
|
||||
%this.process();
|
||||
}
|
||||
function ObjectBuilderGui::buildPhysicsEntity(%this)
|
||||
{
|
||||
%this.objectClassName = "PhysicsEntity";
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ function EWCreatorWindow::init( %this )
|
|||
%this.registerMissionObject( "SFXEmitter", "Sound Emitter" );
|
||||
%this.registerMissionObject( "Precipitation" );
|
||||
%this.registerMissionObject( "ParticleEmitterNode", "Particle Emitter" );
|
||||
%this.registerMissionObject( "VolumetricFog", "Volumetric Fog" );
|
||||
%this.registerMissionObject( "RibbonNode", "Ribbon" );
|
||||
|
||||
// Legacy features. Users should use Ground Cover and the Forest Editor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue