mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fill in the validated variables
This commit is contained in:
parent
fa760fa746
commit
f633ef3a3d
184 changed files with 1359 additions and 1216 deletions
|
|
@ -145,10 +145,10 @@ void Sun::initPersistFields()
|
|||
docsURL;
|
||||
addGroup( "Orbit" );
|
||||
|
||||
addField( "azimuth", TypeF32, Offset( mSunAzimuth, Sun ),
|
||||
addFieldV( "azimuth", TypeRangedF32, Offset( mSunAzimuth, Sun ), &CommonValidators::PosDegreeRange,
|
||||
"The horizontal angle of the sun measured clockwise from the positive Y world axis." );
|
||||
|
||||
addField( "elevation", TypeF32, Offset( mSunElevation, Sun ),
|
||||
addFieldV( "elevation", TypeRangedF32, Offset( mSunElevation, Sun ), &CommonValidators::DegreeRange,
|
||||
"The elevation angle of the sun above or below the horizon." );
|
||||
|
||||
endGroup( "Orbit" );
|
||||
|
|
@ -165,7 +165,7 @@ void Sun::initPersistFields()
|
|||
addField( "ambient", TypeColorF, Offset( mLightAmbient, Sun ), "Color shading applied to surfaces not "
|
||||
"in direct contact with light source, such as in the shadows or interiors.");
|
||||
|
||||
addField( "brightness", TypeF32, Offset( mBrightness, Sun ),
|
||||
addFieldV( "brightness", TypeRangedF32, Offset( mBrightness, Sun ), &CommonValidators::PositiveFloat,
|
||||
"Adjust the Sun's global contrast/intensity");
|
||||
|
||||
addField( "castShadows", TypeBool, Offset( mCastShadows, Sun ),
|
||||
|
|
@ -183,7 +183,7 @@ void Sun::initPersistFields()
|
|||
|
||||
INITPERSISTFIELD_MATERIALASSET(CoronaMaterial, Sun, "Material for the corona sprite.");
|
||||
|
||||
addField( "coronaScale", TypeF32, Offset( mCoronaScale, Sun ),
|
||||
addFieldV( "coronaScale", TypeRangedF32, Offset( mCoronaScale, Sun ), &CommonValidators::PositiveFloat,
|
||||
"Controls size the corona sprite renders, specified as a fractional amount of the screen height." );
|
||||
|
||||
addField( "coronaTint", TypeColorF, Offset( mCoronaTint, Sun ),
|
||||
|
|
@ -200,7 +200,7 @@ void Sun::initPersistFields()
|
|||
addField( "flareType", TYPEID< LightFlareData >(), Offset( mFlareData, Sun ),
|
||||
"Datablock for the flare produced by the Sun" );
|
||||
|
||||
addField( "flareScale", TypeF32, Offset( mFlareScale, Sun ),
|
||||
addFieldV( "flareScale", TypeRangedF32, Offset( mFlareScale, Sun ), &CommonValidators::PositiveFloat,
|
||||
"Changes the size and intensity of the flare." );
|
||||
|
||||
endGroup( "Misc" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue