Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="iso-8859-1" ?>
- <ZApplication Name="App" Caption="ZGameEditor application" ClearColor="0.502 0.502 1 1" Camera="ProjectionFrontal" ViewportRatio="2" NoSound="1">
- <OnLoaded>
- <ZExpression Expression="BkgStretch.Scale.X = 1f*App.ViewportWidth/App.ViewportHeight;"/>
- </OnLoaded>
- <OnUpdate>
- <AnimatorSimple Duration="20" AutoStart="255" Target="matAnim_FrontSource.TextureY" RepeatCount="-1" ToValue="1"/>
- <RefreshContent Component="bmpAnim_Gradient"/>
- <RefreshContent Component="bmpAnim_Scanlines"/>
- </OnUpdate>
- <OnRender>
- <RenderTransformGroup Name="BkgStretch" Scale="1.3339 1 1">
- <Children>
- <UseMaterial Material="matAnim_Back"/>
- <RenderMesh Mesh="PlaneRectangle"/>
- <UseMaterial Material="matAnim_Front"/>
- <RenderMesh Mesh="PlaneRectangle"/>
- </Children>
- </RenderTransformGroup>
- </OnRender>
- <Content>
- <Camera Name="ProjectionFrontal" Comment="No rotation, for interface etc" Kind="1" Position="0 0 10"/>
- <Mesh Name="PlaneRectangle">
- <Producers>
- <MeshBox Grid2DOnly="255"/>
- </Producers>
- </Mesh>
- <Material Name="matAnim_Back" Shading="1" Light="0">
- <Textures>
- <MaterialTexture Texture="bmpAnim_Gradient" TextureWrapMode="2" TexCoords="1"/>
- </Textures>
- </Material>
- <Bitmap Name="bmpAnim_Gradient" Width="0" Height="0" Filter="1">
- <Producers>
- <BitmapExpression>
- <Expression>
- <![CDATA[//X,Y : current coordinate (0..1)
- //Pixel : current color (rgb)
- //Sample expression: Pixel.R=abs(sin(X*16));
- Pixel.R = 1-noise2(Y+sin(X),sin(App.Time*0.05*PI)) * (3/1);
- Pixel.G = 1-noise2(Y+sin(X),sin(App.Time*0.06*PI)) * (3/1);
- Pixel.B = 1-noise2(Y+sin(X),sin(App.Time*0.07*PI)) * (3/1);]]>
- </Expression>
- </BitmapExpression>
- </Producers>
- </Bitmap>
- <Material Name="matAnim_Front" Shading="1" Light="0" Blend="1">
- <Textures>
- <MaterialTexture Name="matAnim_FrontSource" Texture="bmpAnim_Scanlines" TextureY="0.53" TextureWrapMode="1" TexCoords="1"/>
- </Textures>
- </Material>
- <Bitmap Name="bmpAnim_Scanlines" Width="1" Height="1" Filter="1">
- <Producers>
- <BitmapExpression>
- <Expression>
- <![CDATA[//X,Y : current coordinate (0..1)
- //Pixel : current color (rgb)
- //Sample expression: Pixel.R=abs(sin(X*16));
- Pixel.A = (round(Y*31.5)&1);
- Pixel.R = 1-noise2(Y*sin(X),sin(App.Time*0.07*PI)) * (3/1);
- Pixel.G = 1-noise2(Y*cos(X),sin(App.Time*0.06*PI)) * (3/1);
- Pixel.B = 1-noise2(X*sin(Y),sin(App.Time*0.08*PI)) * (3/1);]]>
- </Expression>
- </BitmapExpression>
- </Producers>
- </Bitmap>
- </Content>
- </ZApplication>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement