Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 |
/** * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. */ class ExponentialHeightFogComponent extends ActorComponent native(FogVolume) collapsecategories hidecategories(Object) editinlinenew; /** True if the fog is enabled. */ var() const bool bEnabled; /** z-height for the fog plane - updated by the owning actor */ var const float FogHeight; /** Global density factor. */ var() const interp float FogDensity; /** * Height density factor, controls how the density increases as height decreases. * Smaller values make the visible transition larger. */ var() const interp float FogHeightFalloff; /** * Maximum opacity of the fog. * A value of 1 means the fog can become fully opaque at a distance and replace scene color completely, * A value of 0 means the fog color will not be factored in at all. */ var() const interp float FogMaxOpacity; /** Distance from the camera that the fog will start, in world units. */ var() const interp float StartDistance; /** * LightInscatteringColor is used in the direction of the dominant directional light, and OppositeLightColor is used in the opposite direction. * LightTerminatorAngle is the angle in degrees from the dominant directional light that an even amount of OppositeLightColor and LightInscatteringColor are used for the final fog color. * If there is no dominant directional light enabled, LightInscatteringColor will correspond to up in world space. */ var() const interp float LightTerminatorAngle; /** Scales OppositeLightColor. */ var() const interp float OppositeLightBrightness; /** Fog Color used for the opposite direction from the dominant directional light. */ var() const interp color OppositeLightColor; /** Scales LightInscatteringColor. */ var() const interp float LightInscatteringBrightness; /** Fog Color used for the direction of the dominant directional light. */ var() const interp color LightInscatteringColor; cpptext { protected: // ActorComponent interface. virtual void SetParentToWorld(const FMatrix& ParentToWorld); virtual void Attach(); virtual void UpdateTransform(); virtual void Detach( UBOOL bWillReattach = FALSE ); public: virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent); } /** * Changes the enabled state of the height fog component. * @param bSetEnabled - The new value for bEnabled. */ final native function SetEnabled(bool bSetEnabled); defaultproperties { TickGroup=TG_DuringAsyncWork bEnabled=TRUE FogDensity=0.02 FogHeightFalloff=0.2 FogMaxOpacity=1 StartDistance=0 LightTerminatorAngle=45 OppositeLightBrightness=.2 OppositeLightColor=(R=177,G=208,B=255) LightInscatteringBrightness=1 LightInscatteringColor=(R=245,G=212,B=41) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |