git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1137 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
//--------------------------------------------------------
|
||||
|
||||
shared texture DiffuseTexture;
|
||||
shared float2 Scroll;
|
||||
|
||||
sampler s_DiffuseTexture = sampler_state {
|
||||
Texture = <DiffuseTexture>;
|
||||
@@ -31,7 +32,7 @@ struct FragmentIn {
|
||||
|
||||
VertexOut Simple_vp(VertexIn v) {
|
||||
VertexOut o;
|
||||
o.Position = float4( v.Position.x / 320.0f - 0.5f - 2, 5-v.Position.y / 240.0f, 0, 1 );
|
||||
o.Position = float4( v.Position.x / 320.0f - 0.5f - Scroll.x, Scroll.y - v.Position.y / 240.0f, 0, 1 );
|
||||
o.Tex0 = v.Tex0;
|
||||
return o;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user