mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #986 from Azaezel/alpha41/assetCleanups
Alpha41/asset cleanups
This commit is contained in:
commit
bab419fd65
9 changed files with 10 additions and 23 deletions
|
|
@ -567,7 +567,7 @@ void SimObject::onTamlCustomRead(TamlCustomNodes const& customNodes)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Unknown name so warn.
|
// Unknown name so warn.
|
||||||
Con::warnf("SimObject::onTamlCustomRead() - Encountered an unknown custom field name of '%s'.", fieldName);
|
//Con::warnf("SimObject::onTamlCustomRead() - Encountered an unknown custom field name of '%s'.", fieldName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ U32 DDSFile::getSurfaceSize( U32 height, U32 width, U32 mipLevel ) const
|
||||||
if(mFlags.test(CompressedData))
|
if(mFlags.test(CompressedData))
|
||||||
{
|
{
|
||||||
// From the directX docs:
|
// From the directX docs:
|
||||||
// max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
|
// max(1, width / 4) x max(1, height / 4) x 8(DXT1) or 16(DXT2-5)
|
||||||
|
|
||||||
U32 sizeMultiple = 0;
|
U32 sizeMultiple = 0;
|
||||||
|
|
||||||
|
|
@ -178,7 +178,7 @@ U32 DDSFile::getSizeInBytes( GFXFormat format, U32 height, U32 width, U32 mipLev
|
||||||
"DDSFile::getSizeInBytes - Must be a Block Compression format!" );
|
"DDSFile::getSizeInBytes - Must be a Block Compression format!" );
|
||||||
|
|
||||||
// From the directX docs:
|
// From the directX docs:
|
||||||
// max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
|
// max(1, width / 4) x max(1, height / 4) x 8(DXT1) or 16(DXT2-5)
|
||||||
|
|
||||||
U32 sizeMultiple = 0;
|
U32 sizeMultiple = 0;
|
||||||
if ( format == GFXFormatBC1 || format == GFXFormatBC1_SRGB || format == GFXFormatBC4)
|
if ( format == GFXFormatBC1 || format == GFXFormatBC1_SRGB || format == GFXFormatBC4)
|
||||||
|
|
|
||||||
|
|
@ -1321,7 +1321,7 @@ U32 GBitmap::getSurfaceSize(const U32 mipLevel) const
|
||||||
if (mInternalFormat >= GFXFormatBC1 && mInternalFormat <= GFXFormatBC3)
|
if (mInternalFormat >= GFXFormatBC1 && mInternalFormat <= GFXFormatBC3)
|
||||||
{
|
{
|
||||||
// From the directX docs:
|
// From the directX docs:
|
||||||
// max(1, width ÷ 4) x max(1, height ÷ 4) x 8(DXT1) or 16(DXT2-5)
|
// max(1, width / 4) x max(1, height / 4) x 8(DXT1) or 16(DXT2-5)
|
||||||
|
|
||||||
U32 sizeMultiple = 0;
|
U32 sizeMultiple = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
singleton TSShapeConstructor(cameradts2)
|
|
||||||
{
|
|
||||||
baseShapeAsset = "Core_GameObjects:Camera";
|
|
||||||
singleDetailSize = "0";
|
|
||||||
flipUVCoords = "0";
|
|
||||||
JoinIdenticalVerts = "0";
|
|
||||||
reverseWindingOrder = "0";
|
|
||||||
removeRedundantMats = "0";
|
|
||||||
animFPS = "2";
|
|
||||||
};
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<ShapeAsset
|
<ShapeAsset
|
||||||
AssetName="camera_shape"
|
AssetName="camera_shape"
|
||||||
fileName="@assetFile=camera.fbx"
|
fileName="@assetFile=camera.fbx"
|
||||||
constuctorFileName="@assetFile=camera_shape.tscript"
|
constuctorFileName="@assetFile=camera_shape.tscript"/>
|
||||||
materialSlot0="@asset=Core_GameObjects:CameraMat"/>
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
|
singleton TSShapeConstructor(camerafbx)
|
||||||
singleton TSShapeConstructor(cameradts2)
|
|
||||||
{
|
{
|
||||||
baseShapeAsset = "Core_GameObjects:Camera_shape";
|
baseShapeAsset = "Core_GameObjects:Camera_shape";
|
||||||
singleDetailSize = "0";
|
singleDetailSize = "0";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<GUIAsset
|
<GUIAsset
|
||||||
canSave="true"
|
canSave="true"
|
||||||
canSaveDynamicFields="true"
|
canSaveDynamicFields="true"
|
||||||
AssetName="EditorSettingsWindow,EditorGuiGroup"
|
AssetName="GUIEditorSettingsWindow"
|
||||||
scriptFile="@assetFile=EditorSettingsWindow.ed.gui"
|
scriptFile="@assetFile=EditorSettingsWindow.ed.gui"
|
||||||
GUIFile="@assetFile=EditorSettingsWindow.ed.gui"
|
GUIFile="@assetFile=EditorSettingsWindow.ed.gui"
|
||||||
VersionId="1" />
|
VersionId="1" />
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
mapTo="ReflectProbePreviewMat">
|
mapTo="ReflectProbePreviewMat">
|
||||||
<Material.Stages>
|
<Material.Stages>
|
||||||
<Stages_beginarray
|
<Stages_beginarray
|
||||||
DiffuseMapAsset="Core_Rendering:NoMaterial"
|
DiffuseMapAsset=""
|
||||||
diffuseColor="1 1 1 1"
|
diffuseColor="1 1 1 1"
|
||||||
roughness="0"
|
roughness="0"
|
||||||
metalness="1"/>
|
metalness="1"/>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<GUIAsset
|
<GUIAsset
|
||||||
canSave="true"
|
canSave="true"
|
||||||
canSaveDynamicFields="true"
|
canSaveDynamicFields="true"
|
||||||
AssetName="EditorSettingsWindow,EditorGuiGroup"
|
AssetName="WorldEditorSettingsWindow"
|
||||||
scriptFile="@assetFile=EditorSettingsWindow.ed.gui"
|
scriptFile="@assetFile=EditorSettingsWindow.ed.gui"
|
||||||
GUIFile="@assetFile=EditorSettingsWindow.ed.gui"
|
GUIFile="@assetFile=EditorSettingsWindow.ed.gui"
|
||||||
VersionId="1" />
|
VersionId="1" />
|
||||||
Loading…
Add table
Add a link
Reference in a new issue