InitialObjectDescriptor { objectDescriptorID 1 audioProfileLevelIndication 1 visualProfileLevelIndication 1 sceneProfileLevelIndication 1 graphicsProfileLevelIndication 1 ODProfileLevelIndication 1 esDescr [ ES_Descriptor { ES_ID 2 decConfigDescr DecoderConfigDescriptor { streamType 3 decSpecificInfo BIFSConfig { isCommandStream true pixelMetric true pixelWidth 400 pixelHeight 400 } } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info [ "This test shows how to fill object with radial gradients" "The focal point can be moved to see the effect on the gradient." "" "GPAC Regression Tests" "(C) 2002-2006 GPAC Team" ] title "Radial Gradient Focal Point" } Transform2D { translation 0 -150 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry Text { string ["Drag mouse on Shape" "to change the focal point"] fontStyle DEF FS FontStyle { justify ["MIDDLE" "MIDDLE"] size 20 } } } ] } DEF TR Transform2D { children [ Shape { appearance Appearance { texture DEF GR RadialGradient { focalPoint 0.5 0.5 key [0 0.5 1] keyValue [0 0 1 0 1 1 0 1 0] radius 0.25 spreadMethod 1 } } geometry DEF R Rectangle { size 200 200 } } DEF PS PlaneSensor2D { maxPosition 100 100 minPosition -100 -100 } ] } DEF V Valuator { Factor1 0.01 Factor2 0.01 Factor3 0 Factor4 0 Offset1 0.5 Offset2 0.5 } ] } ROUTE PS.translation_changed TO V.inSFVec2f ROUTE V.outSFVec2f TO GR.focalPoint