Exemple #1
0
void ShaderAsset::EnumerateClass( Reflect::Compositor<ShaderAsset>& comp )
{
    comp.GetComposite().m_UIName = TXT( "Shader" );
    comp.GetComposite().SetProperty( AssetProperties::FileFilter, "*.shader.*" );

    comp.AddField( &ShaderAsset::m_ColorMapPath, "m_ColorMapPath", Reflect::FieldFlags::FilePath );
    comp.AddField( &ShaderAsset::m_NormalMapPath, "m_NormalMapPath", Reflect::FieldFlags::FilePath );
    comp.AddField( &ShaderAsset::m_GPIMapPath, "m_GPIMapPath", Reflect::FieldFlags::FilePath );

    comp.AddField( &ShaderAsset::m_EnableColorMapTint, "m_EnableColorMapTint" );
    comp.AddField( &ShaderAsset::m_ColorMapTint, "m_ColorMapTint" );

    comp.AddField( &ShaderAsset::m_NormalMapScaling, "m_NormalMapScaling" );

    comp.AddField( &ShaderAsset::m_GlossMapEnabled, "m_GlossMapEnabled" );
    comp.AddField( &ShaderAsset::m_GlossMapScaling, "m_GlossMapScaling" );
    comp.AddField( &ShaderAsset::m_GlossMapTint, "m_GlossMapTint" );
    comp.AddField( &ShaderAsset::m_GlossMapDirtiness, "m_GlossMapDirtiness" );
    comp.AddField( &ShaderAsset::m_SpecularPower, "m_SpecularPower" );

    comp.AddField( &ShaderAsset::m_ParallaxMapEnabled, "m_ParallaxMapEnabled" );
    comp.AddField( &ShaderAsset::m_ParallaxMapScaling, "m_ParallaxMapScaling" );

    comp.AddField( &ShaderAsset::m_IncandescentMapEnabled, "m_IncandescentMapEnabled" );
    comp.AddField( &ShaderAsset::m_IncandescentMapScaling, "m_IncandescentMapScaling" );

    Reflect::Field* fieldDoubleSided = comp.AddField( &ShaderAsset::m_DoubleSided, "m_DoubleSided" );

    Reflect::EnumerationField* enumWrapModeU = comp.AddEnumerationField( &ShaderAsset::m_WrapModeU, "m_WrapModeU" );
    Reflect::EnumerationField* enumWrapModeV = comp.AddEnumerationField( &ShaderAsset::m_WrapModeV, "m_WrapModeV" );

    Reflect::EnumerationField* enumAlphaMode = comp.AddEnumerationField( &ShaderAsset::m_AlphaMode, "m_AlphaMode" );

    Reflect::EnumerationField* enumWetSurfaceMode = comp.AddEnumerationField( &ShaderAsset::m_WetSurfaceMode, "m_WetSurfaceMode" );
}
Exemple #2
0
void Light::EnumerateClass( Reflect::Compositor<Light>& comp )
{
  Reflect::Field* fieldColor = comp.AddField( &Light::m_Color, "m_Color" );
  Reflect::Field* fieldAttenuate = comp.AddField( &Light::m_Attenuate, "m_Attenuate" );
  Reflect::Field* fieldCastShadows = comp.AddField( &Light::m_CastShadows, "m_CastShadows" );
  Reflect::Field* fieldDoVisibilityRayTest = comp.AddField( &Light::m_DoVisibilityRayTest, "m_DoVisibilityRayTest" );
  Reflect::Field* fieldFactor = comp.AddField( &Light::m_Factor, "m_Factor" );

  Reflect::EnumerationField* enumRenderType = comp.AddEnumerationField( &Light::m_RenderType, "m_RenderType" );
  Reflect::EnumerationField* enumFlareType = comp.AddEnumerationField( &Light::m_FlareType, "m_FlareType" );
  Reflect::Field* fieldDrawDist = comp.AddField( &Light::m_DrawDist, "m_DrawDist" );
  Reflect::Field* fieldKillIfInactive = comp.AddField( &Light::m_KillIfInactive, "m_KillIfInactive" );
  Reflect::Field* fieldAllowOversized = comp.AddField( &Light::m_AllowOversized, "m_AllowOversized" );
  Reflect::Field* fieldEmitPhotons = comp.AddField( &Light::m_EmitPhotons, "m_EmitPhotons" );
  Reflect::Field* fieldNumPhotons = comp.AddField( &Light::m_NumPhotons, "m_NumPhotons" );
  Reflect::Field* fieldPhotonEnergy = comp.AddField( &Light::m_PhotonEnergy, "m_PhotonEnergy" );
  Reflect::Field* fieldAnimationColor = comp.AddField( &Light::m_AnimationColor, "m_AnimationColor" );
  Reflect::Field* fieldAnimationIntensity = comp.AddField( &Light::m_AnimationIntensity, "m_AnimationIntensity" );
  Reflect::Field* fieldAnimationDuration = comp.AddField( &Light::m_AnimationDuration, "m_AnimationDuration" );
  Reflect::Field* fieldRandomAnimOffset = comp.AddField( &Light::m_RandomAnimOffset, "m_RandomAnimOffset" );
  Reflect::Field* fieldPhysicalLight = comp.AddField( &Light::m_PhysicalLight, "m_PhysicalLight" );

}
Exemple #3
0
void Locator::EnumerateClass( Reflect::Compositor<Locator>& comp )
{
  Reflect::EnumerationField* enumShape = comp.AddEnumerationField( &Locator::m_Shape, "m_Shape" );
}
Exemple #4
0
void Locator::EnumerateClass( Reflect::Compositor<Locator>& comp )
{
    Reflect::EnumerationField* field = comp.AddEnumerationField( &Locator::m_Shape, "m_Shape" );
    field->SetProperty( TXT( "HelpText" ), TXT( "Determines the shape of the locator node." ) );
}