mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Updates the handling of the baking of shape asset previews to generate them with support for view angle control to improve visibility, as well as supporting overriding of a material in the preview bake
Also utilizes the updated bake handling to have material asset previews render as a sphere shape asset, overriding with the material asset's material, improving distinction of what is a material asset vs image asset Also updates the sphere preview mesh to be more generic and not only for reflection probes
This commit is contained in:
parent
d9bedbe31c
commit
b70faae38f
10 changed files with 206 additions and 172 deletions
|
|
@ -1,6 +0,0 @@
|
|||
<ShapeAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="ReflectProbeSphere"
|
||||
fileName="@assetFile=ReflectProbeSphere.dae"
|
||||
constuctorFileName="@assetFile=ReflectProbeSphere.tscript" />
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,11 +0,0 @@
|
|||
|
||||
singleton TSShapeConstructor(ReflectProbeSpheredae)
|
||||
{
|
||||
baseShapeAsset = "ToolsModule:ReflectProbeSphere";
|
||||
singleDetailSize = "0";
|
||||
flipUVCoords = "0";
|
||||
JoinIdenticalVerts = "0";
|
||||
reverseWindingOrder = "0";
|
||||
removeRedundantMats = "0";
|
||||
animFPS = "2";
|
||||
};
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<ShapeAsset
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetName="previewSphereShape"
|
||||
fileName="@assetFile=previewSphereShape.dae"
|
||||
constuctorFileName="@assetFile=previewSphereShape.tscript" />
|
||||
101
Templates/BaseGame/game/tools/resources/previewSphereShape.dae
Normal file
101
Templates/BaseGame/game/tools/resources/previewSphereShape.dae
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue